tailscale/net/portmapper
M. J. Fromberger 5ce3845a02
net/portmapper: avert a panic when a mapping is not available (#16686)
Ideally when we attempt to create a new port mapping, we should not return
without error when no mapping is available. We already log these cases as
unexpected, so this change is just to avoiding panicking dispatch on the
invalid result in those cases. We still separately need to fix the underlying
control flow.

Updates #16662

Change-Id: I51e8a116b922b49eda45e31cd27f6b89dd51abc8

Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
2025-07-28 09:01:41 -07:00
..
disabled_stubs.go net/portmapper: handle multiple UPnP discovery responses 2023-12-18 16:02:46 -05:00
igd_test.go net/portmapper: fix test flakes from logging after test done 2025-04-25 15:54:05 -07:00
legacy_upnp.go net/portmapper: support legacy "urn:dslforum-org" portmapping services 2024-01-23 21:29:29 -05:00
pcp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pcp.go net/portmapper: check returned epoch from PMP and PCP protocols 2024-01-03 14:17:50 -05:00
pcpresultcode_string.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pmpresultcode_string.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
portmapper_test.go util/eventbus: add test helpers to simplify testing events (#16294) 2025-06-25 09:00:34 -04:00
portmapper.go net/portmapper: avert a panic when a mapping is not available (#16686) 2025-07-28 09:01:41 -07:00
select_test.go net/portmapper: fix test flakes from logging after test done 2025-04-25 15:54:05 -07:00
upnp_test.go net/portmapper: fix test flakes from logging after test done 2025-04-25 15:54:05 -07:00
upnp.go net/portmapper: retry UPnP when we get an "Invalid Args" 2025-03-07 14:06:13 -05:00