modify a bug with 10.0.0.1 10.0.0.11 10.0.0.12 match problem

pull/6/head
ibuler 2015-05-18 16:40:36 +08:00
parent 58fd4374c7
commit caa318b808
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,9 @@ def verify_connect(username, part_ip):
return False
for ip_info in hosts:
if part_ip in ip_info[1:]:
ip_matched = [ip_info[1]]
break
for info in ip_info[1:]:
if part_ip in info:
ip_matched.append(ip_info[1])