Skip to content
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

GAE的“IP 段列表”里面要怎么写IPv6地址? #14086

Open
cym104 opened this issue Dec 15, 2024 · 0 comments
Open

GAE的“IP 段列表”里面要怎么写IPv6地址? #14086

cym104 opened this issue Dec 15, 2024 · 0 comments

Comments

@cym104
Copy link

cym104 commented Dec 15, 2024

只要写了IPv6地址,日志里面就会报这样的错误:

2024-12-15 13:03:03.982 - [ERROR] load ip range:2001:4860::/32 fail:ValueError("invalid literal for int() with base 10: ''")

2024-12-15 13:03:03.983 - [ERROR] Except stack:Traceback (most recent call last): File "C:\Program Files (x86)\XX-Net\code\5.10.7\lib\noarch\front_base\ip_source.py", line 82, in load_ip_range nbegin = utils.ip_string_to_num(begin) File "C:\Program Files (x86)\XX-Net\code\5.10.7\lib\noarch\utils.py", line 211, in ip_string_to_num return reduce(lambda a, b: a << 8 | b, list(map(int, s.split(".")))) ValueError: invalid literal for int() with base 10: ''

2024-12-15 13:03:03.983 - [ERROR] load ip range:2404:6800::/32 fail:ValueError("invalid literal for int() with base 10: ''")

2024-12-15 13:03:03.984 - [ERROR] Except stack:Traceback (most recent call last): File "C:\Program Files (x86)\XX-Net\code\5.10.7\lib\noarch\front_base\ip_source.py", line 82, in load_ip_range nbegin = utils.ip_string_to_num(begin) File "C:\Program Files (x86)\XX-Net\code\5.10.7\lib\noarch\utils.py", line 211, in ip_string_to_num return reduce(lambda a, b: a << 8 | b, list(map(int, s.split(".")))) ValueError: invalid literal for int() with base 10: ''

2024-12-15 13:03:03.984 - [ERROR] load ip range:2404:f340::/32 fail:ValueError("invalid literal for int() with base 10: ''")

2024-12-15 13:03:03.984 - [ERROR] Except stack:Traceback (most recent call last): File "C:\Program Files (x86)\XX-Net\code\5.10.7\lib\noarch\front_base\ip_source.py", line 82, in load_ip_range nbegin = utils.ip_string_to_num(begin) File "C:\Program Files (x86)\XX-Net\code\5.10.7\lib\noarch\utils.py", line 211, in ip_string_to_num return reduce(lambda a, b: a << 8 | b, list(map(int, s.split(".")))) ValueError: invalid literal for int() with base 10: ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant