Skip to content

Commit

Permalink
PacketConn has no Read
Browse files Browse the repository at this point in the history
Signed-off-by: Vasyl Gello <[email protected]>
  • Loading branch information
basilgello committed Jul 15, 2024
1 parent c582e17 commit 28636a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/udpproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
func ReverseProxyUDP(mtu uint64, dst net.PacketConn, dstAddr net.Addr, src net.PacketConn) error {
buf := make([]byte, mtu)
for {
n, err := src.Read(buf[:])
n, _, err := src.ReadFrom(buf[:])
if err != nil {
return err
}
Expand Down

0 comments on commit 28636a5

Please sign in to comment.