mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-19 04:18:23 +01:00
options: make sure ttl is of integer type
This commit is contained in:
parent
014a268b99
commit
4c11dd7183
@ -206,7 +206,7 @@ class FirewallClient:
|
|||||||
['-v'] * (helpers.verbose or 0) +
|
['-v'] * (helpers.verbose or 0) +
|
||||||
['--method', method_name] +
|
['--method', method_name] +
|
||||||
['--firewall'] +
|
['--firewall'] +
|
||||||
['--ttl', ttl])
|
['--ttl', str(ttl)])
|
||||||
if ssyslog._p:
|
if ssyslog._p:
|
||||||
argvbase += ['--syslog']
|
argvbase += ['--syslog']
|
||||||
|
|
||||||
|
@ -389,7 +389,8 @@ parser.add_argument(
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--ttl",
|
"--ttl",
|
||||||
default="63",
|
type=int,
|
||||||
|
default=63,
|
||||||
help="""
|
help="""
|
||||||
Override the TTL for the connections made by the sshuttle server.
|
Override the TTL for the connections made by the sshuttle server.
|
||||||
Default is 63.
|
Default is 63.
|
||||||
|
Loading…
Reference in New Issue
Block a user