Skip to content

Commit

Permalink
fix race problem in udp when passing the pointer to channel
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Aug 29, 2023
1 parent a5b51b8 commit 14214e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (t *Transport) Copy(reader io.Reader, writer io.Writer) error {
}

func (t *Transport) TunnelUDP(w io.Writer, req *socks5.Request) error {
udpAddr, err := net.ResolveUDPAddr("udp", "20.1.1.18:0")
udpAddr, err := net.ResolveUDPAddr("udp", "192.168.12.2:0")
// connect to remote server via ws
bindLn, err := net.ListenUDP("udp", udpAddr)
if err != nil {
Expand Down

0 comments on commit 14214e7

Please sign in to comment.