diff --git a/binding/python/search_test.py b/binding/python/search_test.py index efd5546..3d324a3 100644 --- a/binding/python/search_test.py +++ b/binding/python/search_test.py @@ -62,7 +62,7 @@ type 'quit' to exit'''.format(db_path, searcher.get_ip_version().name, cache_pol # get input ip address and do the search while True: - ip_str = input("ip2region>> ") + ip_str = input("ip2region>> ").strip() if len(ip_str) < 2: continue