fix: 'oneserver' could only be set in the CLI

This commit is contained in:
SomberNight 2018-04-11 11:16:29 +02:00
parent 55189c8623
commit 1f937aa6cd
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -806,7 +806,7 @@ argparse._SubParsersAction.__call__ = subparser_call
def add_network_options(parser):
parser.add_argument("-1", "--oneserver", action="store_true", dest="oneserver", default=False, help="connect to one server only")
parser.add_argument("-1", "--oneserver", action="store_true", dest="oneserver", default=None, help="connect to one server only")
parser.add_argument("-s", "--server", dest="server", default=None, help="set server host:port:protocol, where protocol is either t (tcp) or s (ssl)")
parser.add_argument("-p", "--proxy", dest="proxy", default=None, help="set proxy [type:]host[:port], where type is socks4,socks5 or http")