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

修复ipv6环境下输入框ip重复报错的问题 #6988

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gcloud/utils/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_ip_by_regex_type(regex_type, ip_str):
if regex_type == IpRegexType.HOST_ID.value:
ip_list = [int(host_id) for host_id in ip_list]

return ip_list, new_ip_str
return list(set(ip_list)), new_ip_str


def extract_ip_from_ip_str(ip_str):
Expand Down
Loading