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

Commit2c47de0

Browse files
committed
chore: remove usage of wsconn in favor of websocket
1 parent50333d3 commit2c47de0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎tailnet/derp.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010

1111
"nhooyr.io/websocket"
1212
"tailscale.com/derp"
13-
"tailscale.com/net/wsconn"
1413
)
1514

1615
// WithWebsocketSupport returns an http.Handler that upgrades
@@ -60,7 +59,7 @@ func WithWebsocketSupport(s *derp.Server, base http.Handler) (http.Handler, func
6059
c.Close(websocket.StatusPolicyViolation,"client must speak the derp subprotocol")
6160
return
6261
}
63-
wc:=wsconn.NetConn(ctx,c,websocket.MessageBinary)
62+
wc:=websocket.NetConn(ctx,c,websocket.MessageBinary)
6463
brw:=bufio.NewReadWriter(bufio.NewReader(wc),bufio.NewWriter(wc))
6564
s.Accept(ctx,wc,brw,r.RemoteAddr)
6665
}),func() {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp