From e09cb10439fd1240053fb4553902321580bfebd9 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 18 May 2015 17:22:26 +0800 Subject: [PATCH] modify a bug with 10.0.0.1 10.0.0.11 10.0.0.12 match problem --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index e4e01152d..0721b2ad9 100644 --- a/connect.py +++ b/connect.py @@ -194,7 +194,7 @@ def verify_connect(username, part_ip): return False for ip_info in hosts: - if part_ip in ip_info[1:]: + if part_ip in ip_info[1:] and part_ip: ip_matched = [ip_info[1]] break for info in ip_info[1:]: