mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Have websocketconn.New return a pointer.
This makes the return type satisfy the io.ReadWriteCloser interface directly.
This commit is contained in:
parent
e47dd5e2b4
commit
20ac2029fd
4 changed files with 5 additions and 5 deletions
|
@ -125,7 +125,7 @@ func (handler *HTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
defer or.Close()
|
||||
|
||||
proxy(or, &conn)
|
||||
proxy(or, conn)
|
||||
}
|
||||
|
||||
func initServer(addr *net.TCPAddr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue