mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-29 03:14:20 +01:00
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.
This commit is contained in:
parent
0ed5ef9a97
commit
15b394da86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user