diff --git a/server/main.py b/server/main.py index 15a3fd5..26edd78 100644 --- a/server/main.py +++ b/server/main.py @@ -5,6 +5,7 @@ import threading from time import sleep PORT = 80 +MY_IP = get_if_addr(conf.iface) Handler = http.server.SimpleHTTPRequestHandler http = socketserver.TCPServer(("", PORT), Handler) @@ -18,6 +19,7 @@ def empty_addresses(): def handler(pkt): address = pkt[IP].src + if address == MY_IP: return if address in addresses.keys(): count = addresses[address] if count > 30: