mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-07-03 00:01:45 +02: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:
@ -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
|
||||||
|
Reference in New Issue
Block a user