diff --git a/feature/conn25/conn25.go b/feature/conn25/conn25.go index 3ba94e0d4..8455afc70 100644 --- a/feature/conn25/conn25.go +++ b/feature/conn25/conn25.go @@ -100,6 +100,9 @@ func handleConnectorTransitIP(h ipnlocal.PeerAPIHandler, w http.ResponseWriter, http.Error(w, "miswired", http.StatusInternalServerError) return } + if !e.conn25.isConfigured() { + http.Error(w, "conn25 not configured", http.StatusServiceUnavailable) + } e.handleConnectorTransitIP(h, w, r) }