-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for multi-listen #11644
Add support for multi-listen #11644
Conversation
Exception in thread Thread-3: |
listen_ip = "0.0.0.0" | ||
|
||
listen_ips = front.config.listen_ip | ||
if isinstance(listen_ip, str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
listen_ip
应该是listen_ips
,另外这个的类型不是str而是unicode……
if isinstance(listen_ip, str): | |
if not isinstance(listen_ips, list): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unicode 吗,我再看看。。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
换成 basestring 了
|
self.bing_linsten(ip) | ||
|
||
def bing_linsten(self, bind_ip): | ||
if ":" in addr[0]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exception in thread Thread-50:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/mnt/c/Users/njzjz/Saved Games/XX-Net-3.12.11/code/default/smart_router/start.py", line 19, in main
client.run(args)
File "/mnt/c/Users/njzjz/Saved Games/XX-Net-3.12.11/code/default/smart_router/local/__init__.py", line 148, in run
ttl=g.config.dns_ttl)
File "/mnt/c/Users/njzjz/Saved Games/XX-Net-3.12.11/code/default/smart_router/local/dns_server.py", line 327, in __init__
self.init_socket()
File "/mnt/c/Users/njzjz/Saved Games/XX-Net-3.12.11/code/default/smart_router/local/dns_server.py", line 331, in init_socket
self.bing_linsten(ip)
File "/mnt/c/Users/njzjz/Saved Games/XX-Net-3.12.11/code/default/smart_router/local/dns_server.py", line 334, in bing_linsten
if ":" in addr[0]:
NameError: global name 'addr' is not defined
bugfix
IP为列表(list)时,访问管理页面报错,
很明显是gae_proxy/local/web_control.py#L340的问题。 其余一切正常。 |
Ok,希望这是最后一处。见笑了。 |
👌,没问题了 |
好,等你用几天就 merge。 |
#11641
添加可监听多个 IP(包括 IPv6),并保持其余行为和旧版一致,需手动编辑配置文件。
定义
web control
data/launcher/config.yaml
gae proxy
data/gae_proxy/config.json
x-tunnel
data/x_tunnel/client.json
smart route & dns sever
data/smart_router/config.json