From de49ea594ad38e43d74959c3663b70f1f3c383d3 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 23 Jan 2017 23:14:20 +0100 Subject: [PATCH] lib/upnp: Wrong order of internal/external port after OnlyPermanentLeasesSupported (fixes #3924) --- lib/upnp/igd_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upnp/igd_service.go b/lib/upnp/igd_service.go index 4008f5ea..faa31f8d 100644 --- a/lib/upnp/igd_service.go +++ b/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) } }