Split UDPMux and UniversalUDPMux

This commit is contained in:
braginini 2022-09-06 20:54:40 +02:00
parent 0721b87c56
commit a7facc2d72

View File

@ -204,7 +204,7 @@ func (b *ICEBind) Send(buff []byte, endpoint conn.Endpoint) error {
if co == nil {
// todo proper handling
log.Warnf("conn not found for endpoint %s", endpoint.DstToString())
return nil
return conn.ErrWrongEndpointType
}
_, err := co.WriteTo(buff, (*net.UDPAddr)(nend))