mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Remove some redundancy in websocketconn naming.
Rename websocketconn.WebSocketConn to websocketconn.Conn, and websocketconn.NewWebSocketConn to websocketconn.New Following the guidelines at https://blog.golang.org/package-names#TOC_3%2e
This commit is contained in:
parent
5b01df9030
commit
e47dd5e2b4
4 changed files with 13 additions and 13 deletions
|
@ -285,7 +285,7 @@ func datachannelHandler(conn *webRTCConn, remoteAddr net.Addr) {
|
|||
log.Printf("error dialing relay: %s", err)
|
||||
return
|
||||
}
|
||||
wsConn := websocketconn.NewWebSocketConn(ws)
|
||||
wsConn := websocketconn.New(ws)
|
||||
log.Printf("connected to relay")
|
||||
defer wsConn.Close()
|
||||
CopyLoop(conn, &wsConn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue