Skip to content

Commit

Permalink
fix udp race problem
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Aug 29, 2023
1 parent 4ccfa67 commit 4af9a35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func chanFromConn(conn net.Conn) chan []byte {
func handleUDPOverTCP(conn net.Conn, destination string) {
writeToWebsocketChannel := make(chan []byte)
activeTunnels[destination] = writeToWebsocketChannel

wsReadDataChan := chanFromConn(conn)

defer conn.Close()
Expand Down

0 comments on commit 4af9a35

Please sign in to comment.