add ipv6 config
This commit is contained in:
parent
e6d7a12afe
commit
c0d1d666a4
3 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
"method": "aes-256-cfb",
|
||||
"obfs": "http_simple_compatible",
|
||||
"obfs_param": "",
|
||||
"ipv6": false,
|
||||
"fast_open": false,
|
||||
"workers": 1
|
||||
}
|
||||
|
|
|
@ -43,6 +43,9 @@ def main():
|
|||
|
||||
config = shell.get_config(True)
|
||||
|
||||
if not config.get('ipv6', False):
|
||||
asyncdns.IPV6_CONNECTION_SUPPORT = False
|
||||
|
||||
daemon.daemon_exec(config)
|
||||
|
||||
try:
|
||||
|
|
|
@ -54,6 +54,9 @@ def main():
|
|||
else:
|
||||
config['port_password'][str(server_port)] = config['password']
|
||||
|
||||
if not config.get('ipv6', False):
|
||||
asyncdns.IPV6_CONNECTION_SUPPORT = False
|
||||
|
||||
if config.get('manager_address', 0):
|
||||
logging.info('entering manager mode')
|
||||
manager.run(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue