Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bzEq committed Apr 26, 2024
1 parent d62a306 commit 5bcf514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions s5/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ func main() {
log.Println(err)
continue
}
go func(remoteAddr *net.udpAddr, req []byte) {
go func(remoteAddr *net.UDPAddr, req []byte) {
s := socks5.Server{
UDPAddr: ln.LocalAddr().(*net.UDPAddr),
}
if err := s.ServeUDP(ln, remoteAddr, req); err != nil {
log.Println(err)
}
}(remoteAddr, req)
}(remoteAddr, req[:n])
}
}()
ln, err := net.Listen("tcp", localAddr)
Expand Down

0 comments on commit 5bcf514

Please sign in to comment.