Fix udp deadline

This commit is contained in:
wwqgtxx 2023-05-12 11:05:29 +08:00 committed by GitHub
parent e29eff15cd
commit ab3e4694cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {