|
|
@ -67,6 +67,9 @@ class PyMaster: |
|
|
|
self.serverRL = IPRateLimit('server', 60, 30) |
|
|
|
self.serverRL = IPRateLimit('server', 60, 30) |
|
|
|
self.clientRL = IPRateLimit('client', 60, 120) |
|
|
|
self.clientRL = IPRateLimit('client', 60, 120) |
|
|
|
self.ipfilterRL = IPRateLimit('filterlog', 60, 10) |
|
|
|
self.ipfilterRL = IPRateLimit('filterlog', 60, 10) |
|
|
|
|
|
|
|
if ':' in ip: |
|
|
|
|
|
|
|
self.sock = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM) |
|
|
|
|
|
|
|
else: |
|
|
|
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
|
|
|
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
|
|
|
self.sock.bind((ip, port)) |
|
|
|
self.sock.bind((ip, port)) |
|
|
|
|
|
|
|
|
|
|
|