From 4c11dd7183eb9afc1b82a7cddc2a87ceac26d572 Mon Sep 17 00:00:00 2001 From: Patrick Huesmann Date: Sat, 20 Mar 2021 12:26:17 +0100 Subject: [PATCH] options: make sure ttl is of integer type --- sshuttle/client.py | 2 +- sshuttle/options.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sshuttle/client.py b/sshuttle/client.py index c1cabdb..e586a4a 100644 --- a/sshuttle/client.py +++ b/sshuttle/client.py @@ -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'] diff --git a/sshuttle/options.py b/sshuttle/options.py index 377a1fd..290e176 100644 --- a/sshuttle/options.py +++ b/sshuttle/options.py @@ -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.