Skip to content

Commit

Permalink
Fix #117 to allow for no subnets via file (-s)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Joao Vieira authored and brianmay committed Oct 13, 2016
1 parent 0ed5ef9 commit 15b394d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sshuttle/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def __call__(self, parser, namespace, values, option_string=None):
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
Expand Down

0 comments on commit 15b394d

Please sign in to comment.