mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-05 21:56:17 +02:00
22 lines
332 B
Go
22 lines
332 B
Go
//go:build !ios
|
|
|
|
package bind
|
|
|
|
import (
|
|
nbnet "github.com/netbirdio/netbird/util/net"
|
|
)
|
|
|
|
func (m *UDPMuxDefault) notifyAddressRemoval(addr string) {
|
|
wrapped, ok := m.params.UDPConn.(*UDPConn)
|
|
if !ok {
|
|
return
|
|
}
|
|
|
|
nbnetConn, ok := wrapped.GetPacketConn().(*nbnet.UDPConn)
|
|
if !ok {
|
|
return
|
|
}
|
|
|
|
nbnetConn.RemoveAddress(addr)
|
|
}
|