Skip to content

Commit

Permalink
Fix udp deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx authored May 12, 2023
1 parent e29eff1 commit ab3e469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/bufio/deadline/packet_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *PacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, er
}

func (c *PacketConn) SetReadDeadline(t time.Time) error {
return c.NetPacketConn.SetReadDeadline(t)
return c.reader.SetReadDeadline(t)
}

func (c *PacketConn) ReaderReplaceable() bool {
Expand Down

0 comments on commit ab3e469

Please sign in to comment.