mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-27 20:16:28 -08:00
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:
1 parent
4782f36506
commit
0953fd9a97
1 file changed
+1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user