fix disconnecting sleep
diff --git a/code/default/gae_proxy/local/check_ip.py b/code/default/gae_proxy/local/check_ip.py
index e3257f7030..faa94fba5e 100755
--- a/code/default/gae_proxy/local/check_ip.py
+++ b/code/default/gae_proxy/local/check_ip.py
@@ -140,7 +140,7 @@ def load_proxy_config():
 network_fail_lock = threading.Lock()
 
 def connect_ssl(ip, port=443, timeout=5, check_cert=True, close_cb=None):
-    if check_local_network.is_ok(ip):
+    if not check_local_network.is_ok(ip):
         with network_fail_lock:
            time.sleep(0.1)
 
