瀏覽代碼

ipn/ipnlocal: fix doctor API endpoint (#11155)

Small fix to make sure doctor API endpoint returns correctly - I spotted it when checking my tailscaled node and noticed it was handled slightly different compare to the rest

Signed-off-by: San <[email protected]>
San 2 年之前
父節點
當前提交
69f5664075
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ipn/ipnlocal/peerapi.go

+ 1 - 0
ipn/ipnlocal/peerapi.go

@@ -351,6 +351,7 @@ func (h *peerAPIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		return
 	case "/v0/doctor":
 		h.handleServeDoctor(w, r)
+		return
 	case "/v0/sockstats":
 		h.handleServeSockStats(w, r)
 		return