Sfoglia il codice sorgente

lib/upnp: Wrong order of internal/external port after OnlyPermanentLeasesSupported (fixes #3924)

Jakob Borg 9 anni fa
parent
commit
de49ea594a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/upnp/igd_service.go

+ 1 - 1
lib/upnp/igd_service.go

@@ -70,7 +70,7 @@ func (s *IGDService) AddPortMapping(localIPAddress net.IP, protocol nat.Protocol
 			return unmarshalErr
 		}
 		if envelope.ErrorCode == 725 {
-			return s.AddPortMapping(localIPAddress, protocol, externalPort, internalPort, description, 0)
+			return s.AddPortMapping(localIPAddress, protocol, internalPort, externalPort, description, 0)
 		}
 	}