Fix wg connection establishment using Bind

This commit is contained in:
braginini
2023-04-25 20:23:04 +02:00
parent 6fec0c682e
commit 91636feb69
2 changed files with 47 additions and 19 deletions
+4
View File
@@ -75,6 +75,10 @@ type udpConn struct {
logger logging.LeveledLogger
}
func (m *UniversalUDPMuxDefault) GetSharedConn() net.PacketConn {
return m.params.UDPConn
}
// GetListenAddresses returns the listen addr of this UDP
func (m *UniversalUDPMuxDefault) GetListenAddresses() []net.Addr {
return []net.Addr{m.LocalAddr()}