Skip to content

Commit 9187327

Browse files
committed
fixup! feat(agent): add http debug routes for magicsock
1 parent 3138432 commit 9187327

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

agent/agent.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,16 +1274,16 @@ func (a *agent) isClosed() bool {
12741274

12751275
func (a *agent) MagicsockServeHTTPDebug(w http.ResponseWriter, r *http.Request) {
12761276
a.closeMutex.Lock()
1277-
net := a.network
1277+
network := a.network
12781278
a.closeMutex.Unlock()
12791279

1280-
if net == nil {
1280+
if network == nil {
12811281
w.WriteHeader(http.StatusOK)
1282-
w.Write([]byte("network is not ready yet"))
1282+
_, _ = w.Write([]byte("network is not ready yet"))
12831283
return
12841284
}
12851285

1286-
net.MagicsockServeHTTPDebug(w, r)
1286+
network.MagicsockServeHTTPDebug(w, r)
12871287
}
12881288

12891289
func (a *agent) Close() error {

0 commit comments

Comments
 (0)