mirror of https://github.com/Kkevsterrr/geneva
Added UDP support
This commit is contained in:
parent
337f916920
commit
658b5e51b2
|
@ -128,8 +128,8 @@ class WindowsEngine(GenericEngine):
|
|||
|
||||
self.logger.debug("Initializing Divert")
|
||||
|
||||
self.divert = pydivert.WinDivert("tcp.DstPort == %d || tcp.SrcPort == %d" % (int(self.server_port), int(self.server_port)))
|
||||
self.divert.open()
|
||||
self.divert = pydivert.WinDivert("tcp.DstPort == %d || tcp.SrcPort == %d || udp.DstPort == %d || udp.SrcPort == %d" \
|
||||
% (int(self.server_port), int(self.server_port), int(self.server_port), int(self.server_port)))self.divert.open()
|
||||
self.divert_thread = threading.Thread(target=self.run_divert)
|
||||
self.divert_thread.start()
|
||||
|
||||
|
|
Loading…
Reference in New Issue