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

This commit is contained in:
Jakob Borg 2017-01-23 23:14:20 +01:00
parent 6d4fa27ea7
commit de49ea594a

View File

@ -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)
}
}