Skip to content

Commit 2c47de0

Browse files
committed
chore: remove usage of wsconn in favor of websocket
1 parent 50333d3 commit 2c47de0

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy