diff --git a/src/rudp/partials/RUDP.ClientTo.cs b/src/rudp/partials/RUDP.ClientTo.cs index 0fd7a1e..4be4d25 100644 --- a/src/rudp/partials/RUDP.ClientTo.cs +++ b/src/rudp/partials/RUDP.ClientTo.cs @@ -73,6 +73,9 @@ public Task Open(Host host) if (host == null) throw new NullReferenceException(nameof(host)); _socket = new Socket(host.AddressFamily, SocketType.Dgram, ProtocolType.Udp); + + On.OnModify?.Invoke(null, _socket); + _socket.Connect(host.EndPoint); InitConnection(ref host);