Skip to content

Commit bcd3205

Browse files
committed
Fix passing latency_control to server.
1 parent a651d74 commit bcd3205

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

sshuttle/assembler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929
import sshuttle.helpers
3030
sshuttle.helpers.verbose = verbosity
3131

32+
import sshuttle.cmdline_options as options
3233
from sshuttle.server import main
33-
main()
34+
main(options.latency_control)

sshuttle/server.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
resolvconf_random_nameserver
1616

1717

18-
if not globals().get('latency_control'):
19-
latency_control = None
20-
21-
2218
def _ipmatch(ipstr):
2319
if ipstr == 'default':
2420
ipstr = '0.0.0.0/0'
@@ -210,7 +206,7 @@ def callback(self):
210206
self.mux.send(self.chan, ssnet.CMD_UDP_DATA, hdr + data)
211207

212208

213-
def main():
209+
def main(latency_control):
214210
if helpers.verbose >= 1:
215211
helpers.logprefix = ' s: '
216212
else:

0 commit comments

Comments
 (0)