summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Vieira <joao.vieira@vilt-group.com>2016-10-06 15:09:31 +0100
committerBrian May <brian@linuxpenguins.xyz>2016-10-13 17:52:58 +1100
commit15b394da86d196a3b959853622afdb71d5453998 (patch)
treedb24668d71cd9c863e14a5d17187fad6bc74293b
parent0ed5ef9a97dfce517c0dcfa515b011867d90be62 (diff)
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.
-rw-r--r--sshuttle/options.py1
1 files changed, 1 insertions, 0 deletions
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