From 15b394da86d196a3b959853622afdb71d5453998 Mon Sep 17 00:00:00 2001 From: Joao Vieira Date: Thu, 6 Oct 2016 15:09:31 +0100 Subject: [PATCH] Fix #117 to allow for no subnets via file (-s) This should fix an issue introduced in #117 where when no subnets are given via file (-s file) the variable is None instead of an empty list and the concatenation with the subnets given as positional parameters fails. --- sshuttle/options.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sshuttle/options.py b/sshuttle/options.py index baf10ec..9eec931 100644 --- a/sshuttle/options.py +++ b/sshuttle/options.py @@ -270,6 +270,7 @@ parser.add_argument( metavar="PATH", action=Concat, dest="subnets_file", + default=[], type=parse_subnet_file, help=""" file where the subnets are stored, instead of on the command line