chore: cleanup natTable's api
This commit is contained in:
@ -217,10 +217,6 @@ type UDPPacket interface {
|
||||
|
||||
// LocalAddr returns the source IP/Port of packet
|
||||
LocalAddr() net.Addr
|
||||
|
||||
SetNatTable(natTable NatTable)
|
||||
|
||||
SetUdpInChan(in chan<- PacketAdapter)
|
||||
}
|
||||
|
||||
type UDPPacketInAddr interface {
|
||||
|
@ -16,7 +16,7 @@ type MultiAddrListener interface {
|
||||
|
||||
type InboundListener interface {
|
||||
Name() string
|
||||
Listen(tcpIn chan<- ConnContext, udpIn chan<- PacketAdapter) error
|
||||
Listen(tcpIn chan<- ConnContext, udpIn chan<- PacketAdapter, natTable NatTable) error
|
||||
Close() error
|
||||
Address() string
|
||||
RawAddress() string
|
||||
|
Reference in New Issue
Block a user