lib/upnp: Wrong order of internal/external port after OnlyPermanentLeasesSupported (fixes #3924)
This commit is contained in:
parent
6d4fa27ea7
commit
de49ea594a
@ -70,7 +70,7 @@ func (s *IGDService) AddPortMapping(localIPAddress net.IP, protocol nat.Protocol
|
|||||||
return unmarshalErr
|
return unmarshalErr
|
||||||
}
|
}
|
||||||
if envelope.ErrorCode == 725 {
|
if envelope.ErrorCode == 725 {
|
||||||
return s.AddPortMapping(localIPAddress, protocol, externalPort, internalPort, description, 0)
|
return s.AddPortMapping(localIPAddress, protocol, internalPort, externalPort, description, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user