add '-4/--force-ipv4' and '-6/--force-ipv6' command-line options
This commit is contained in:
@@ -460,6 +460,17 @@ def build_parser():
|
||||
dest="source-address", metavar="IP", action=ConfigAction,
|
||||
help="Client-side IP address to bind to",
|
||||
)
|
||||
networking.add_argument(
|
||||
"-4", "--force-ipv4",
|
||||
dest="source-address", nargs=0, action=ConfigConstAction,
|
||||
const="0.0.0.0",
|
||||
help="Make all connections via IPv4",
|
||||
)
|
||||
networking.add_argument(
|
||||
"-6", "--force-ipv6",
|
||||
dest="source-address", nargs=0, action=ConfigConstAction, const="::",
|
||||
help="Make all connections via IPv6",
|
||||
)
|
||||
networking.add_argument(
|
||||
"--no-check-certificate",
|
||||
dest="verify", nargs=0, action=ConfigConstAction, const=False,
|
||||
|
||||
Reference in New Issue
Block a user