We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a651d74 commit bcd3205Copy full SHA for bcd3205
sshuttle/assembler.py
@@ -29,5 +29,6 @@
29
import sshuttle.helpers
30
sshuttle.helpers.verbose = verbosity
31
32
+import sshuttle.cmdline_options as options
33
from sshuttle.server import main
-main()
34
+main(options.latency_control)
sshuttle/server.py
@@ -15,10 +15,6 @@
15
resolvconf_random_nameserver
16
17
18
-if not globals().get('latency_control'):
19
- latency_control = None
20
-
21
22
def _ipmatch(ipstr):
23
if ipstr == 'default':
24
ipstr = '0.0.0.0/0'
@@ -210,7 +206,7 @@ def callback(self):
210
206
self.mux.send(self.chan, ssnet.CMD_UDP_DATA, hdr + data)
211
207
212
208
213
-def main():
209
+def main(latency_control):
214
if helpers.verbose >= 1:
215
helpers.logprefix = ' s: '
216
else:
0 commit comments