summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2011-01-25 21:30:56 -0800
committerAvery Pennarun <apenwarr@gmail.com>2011-01-25 22:11:28 -0800
commite7a19890aa579e94dc99cbd662bd5ed598d642fd (patch)
tree58c429de30c64bac733b3ece21ca8a8262c6579d /main.py
parent675f19f57e23a640cea64b79f2c368f233f6660b (diff)
parentd9b1bb52e5e994f5d3c9c3a77efea5e81910b6ea (diff)
Merge branch 'fullness'
Tests with speedtest.net to a linode.com server: Downstream Upstream No sshuttle 1.25 Mbit/s 0.55 Mbit/s Default 0.75 Mbit/s 0.51 Mbit/s --no-latency-control 1.25 Mbit/s 0.55 Mbit/s * fullness: man page for the --no-latency-control option. options: remove unused 'exe' parameter options.py: generate usage string correctly for no-* options. Implement the optional fullness checking a bit more like I like it. new option to disable fullness checking
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.py b/main.py
index 66954f8..5597177 100755
--- a/main.py
+++ b/main.py
@@ -60,6 +60,7 @@ x,exclude= exclude this subnet (can be used more than once)
v,verbose increase debug message verbosity
e,ssh-cmd= the command to use to connect to the remote [ssh]
seed-hosts= with -H, use these hostnames for initial scan (comma-separated)
+no-latency-control sacrifice latency to improve bandwidth benchmarks
D,daemon run in the background as a daemon
syslog send log messages to syslog (default if you use --daemon)
pidfile= pidfile name (only if using --daemon) [./sshuttle.pid]
@@ -67,7 +68,7 @@ server (internal use only)
firewall (internal use only)
hostwatch (internal use only)
"""
-o = options.Options('sshuttle', optspec)
+o = options.Options(optspec)
(opt, flags, extra) = o.parse(sys.argv[1:])
if opt.daemon:
@@ -78,6 +79,7 @@ try:
if opt.server:
if len(extra) != 0:
o.fatal('no arguments expected')
+ server.latency_control = opt.latency_control
sys.exit(server.main())
elif opt.firewall:
if len(extra) != 1:
@@ -108,6 +110,7 @@ try:
opt.ssh_cmd,
remotename,
opt.python,
+ opt.latency_control,
sh,
opt.auto_nets,
parse_subnets(includes),