Saataa andagii !
This commit is contained in:
parent
d9f8aac30f
commit
7177a763e5
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue