mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-25 17:33:15 +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",
|
metavar="PATH",
|
||||||
action=Concat,
|
action=Concat,
|
||||||
dest="subnets_file",
|
dest="subnets_file",
|
||||||
|
default=[],
|
||||||
type=parse_subnet_file,
|
type=parse_subnet_file,
|
||||||
help="""
|
help="""
|
||||||
file where the subnets are stored, instead of on the command line
|
file where the subnets are stored, instead of on the command line
|
||||||
|
Loading…
Reference in New Issue
Block a user