conn25: return early in handleConnectorTransitIP if conn25 not configured

We were checking and writing an HTTP error, but not returning.

Updates tailscale/corp#39033

Signed-off-by: Michael Ben-Ami <[email protected]>
This commit is contained in:
Michael Ben-Ami authored and mzbenami committed 2026-08-14 07:31:34 -04:00
1 parent 4782f36506
commit 0953fd9a97
1 file changed
+1
+1
View File
@@ -96,6 +96,7 @@ func handleConnectorTransitIP(h ipnlocal.PeerAPIHandler, w http.ResponseWriter,
}
if !e.conn25.isConfigured() {
http.Error(w, "conn25 not configured", http.StatusServiceUnavailable)
return
}
e.handleConnectorTransitIP(h, w, r)
}