From a7facc2d7270cdaab4a8f820a48db9617334080b Mon Sep 17 00:00:00 2001 From: braginini Date: Tue, 6 Sep 2022 20:54:40 +0200 Subject: [PATCH] Split UDPMux and UniversalUDPMux --- iface/bind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iface/bind.go b/iface/bind.go index 87fdae707..5be9a8fc6 100644 --- a/iface/bind.go +++ b/iface/bind.go @@ -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))