options: make sure ttl is of integer type

This commit is contained in:
Patrick Huesmann 2021-03-20 12:26:17 +01:00
parent 014a268b99
commit 4c11dd7183
2 changed files with 3 additions and 2 deletions

View File

@ -206,7 +206,7 @@ class FirewallClient:
['-v'] * (helpers.verbose or 0) +
['--method', method_name] +
['--firewall'] +
['--ttl', ttl])
['--ttl', str(ttl)])
if ssyslog._p:
argvbase += ['--syslog']

View File

@ -389,7 +389,8 @@ parser.add_argument(
)
parser.add_argument(
"--ttl",
default="63",
type=int,
default=63,
help="""
Override the TTL for the connections made by the sshuttle server.
Default is 63.