Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9187327

Browse files
committed
fixup! feat(agent): add http debug routes for magicsock
1 parent3138432 commit9187327

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-
ifnet==nil {
1280+
ifnetwork==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)

[8]ページ先頭

©2009-2025 Movatter.jp