Skip to content

Commit

Permalink
add ipv6 config
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Oct 29, 2015
1 parent e6d7a12 commit c0d1d66
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"method": "aes-256-cfb",
"obfs": "http_simple_compatible",
"obfs_param": "",
"ipv6": false,
"fast_open": false,
"workers": 1
}
3 changes: 3 additions & 0 deletions shadowsocks/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions shadowsocks/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c0d1d66

Please sign in to comment.