MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / sshuttle_args

Function sshuttle_args

ui-macos/main.py:5–20  ·  view source on GitHub ↗
(host, auto_nets, auto_hosts, dns, nets, debug,
                  no_latency_control)

Source from the content-addressed store, hash-verified

3import my, models, askpass
4
5def sshuttle_args(host, auto_nets, auto_hosts, dns, nets, debug,
6 no_latency_control):
7 argv = [my.bundle_path('sshuttle/sshuttle', ''), '-r', host]
8 assert(argv[0])
9 if debug:
10 argv.append('-v')
11 if auto_nets:
12 argv.append('--auto-nets')
13 if auto_hosts:
14 argv.append('--auto-hosts')
15 if dns:
16 argv.append('--dns')
17 if no_latency_control:
18 argv.append('--no-latency-control')
19 argv += nets
20 return argv
21
22
23class _Callback(NSObject):

Callers 1

_connectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected