Commit caa318b8 authored by ibuler's avatar ibuler

modify a bug with 10.0.0.1 10.0.0.11 10.0.0.12 match problem

parent 58fd4374
...@@ -194,6 +194,9 @@ def verify_connect(username, part_ip): ...@@ -194,6 +194,9 @@ def verify_connect(username, part_ip):
return False return False
for ip_info in hosts: for ip_info in hosts:
if part_ip in ip_info[1:]:
ip_matched = [ip_info[1]]
break
for info in ip_info[1:]: for info in ip_info[1:]:
if part_ip in info: if part_ip in info:
ip_matched.append(ip_info[1]) ip_matched.append(ip_info[1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment