Implicitly map DNSCNC ports via IGD to 53

There is no much reason to expose non-standard DNS ports outside.
This commit is contained in:
Oleksii Shevchuk 2017-03-14 21:36:17 +02:00
parent 690e3c162c
commit 49e1a9efd8
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ class PupyDnsCnc(object):
)
if self.igd and self.igd.available:
self.igd.AddPortMapping(int(port), 'UDP', int(port))
self.igd.AddPortMapping(int(port), 'UDP', 53)
self.igd.AddPortMapping(int(port), 'TCP', 53)
self.server.start()