diff --git a/hotspot_proxy_v2.py b/hotspot_proxy_v2.py index 1350652..a3fc81e 100644 --- a/hotspot_proxy_v2.py +++ b/hotspot_proxy_v2.py @@ -69,6 +69,13 @@ class privHelper(): except Exception as e: print('(PrivError) {}'.format(e)) + def blocklistFlush(self): + try: + with Pyro5.api.Proxy(self._netfilterURI) as nf: + nf.blocklistFlush() + except Exception as e: + print('(PrivError) {}'.format(e)) + def flushCT(self): try: with Pyro5.api.Proxy(self._conntrackURI) as ct: @@ -77,8 +84,6 @@ class privHelper(): print('(PrivError) {}'.format(e)) - - class Proxy(DatagramProtocol): def __init__(self,Master,ListenPort,connTrack,peerTrack,blackList,IPBlackList,Timeout,Debug,ClientInfo,DestportStart,DestPortEnd,privHelper,rptlTrack):