- it looks like some UPnP server implementations consider NewRemoteHost
  to be a mandatory tag
master
Peter Šurda 6 years ago
parent 0689525d61
commit 6add48e036
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
  1. 2
      src/upnp.py

@ -110,6 +110,7 @@ class Router:
def AddPortMapping(self, externalPort, internalPort, internalClient, protocol, description, leaseDuration = 0, enabled = 1):
from debug import logger
resp = self.soapRequest(self.upnp_schema + ':1', 'AddPortMapping', [
('NewRemoteHost', ''),
('NewExternalPort', str(externalPort)),
('NewProtocol', protocol),
('NewInternalPort', str(internalPort)),
@ -125,6 +126,7 @@ class Router:
def DeletePortMapping(self, externalPort, protocol):
from debug import logger
resp = self.soapRequest(self.upnp_schema + ':1', 'DeletePortMapping', [
('NewRemoteHost', ''),
('NewExternalPort', str(externalPort)),
('NewProtocol', protocol),
])

Loading…
Cancel
Save