add ipv6 config

This commit is contained in:
BreakWa11 2015-10-29 11:00:01 +08:00
parent e6d7a12afe
commit c0d1d666a4
3 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,7 @@
"method": "aes-256-cfb",
"obfs": "http_simple_compatible",
"obfs_param": "",
"ipv6": false,
"fast_open": false,
"workers": 1
}

View file

@ -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:

View file

@ -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)