Fix fallback packet conn

This commit is contained in:
世界 2023-04-09 22:50:25 +08:00
parent 7f8eaee1b6
commit a82d82e559
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -42,3 +42,15 @@ func (c *FallbackPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
}
return
}
func (c *FallbackPacketConn) ReaderReplaceable() bool {
return true
}
func (c *FallbackPacketConn) WriterReplaceable() bool {
return true
}
func (c *FallbackPacketConn) Upstream() any {
return c.PacketConn
}