From 7bf209dc8ea5ed2e397cd894475934490bba7d8d Mon Sep 17 00:00:00 2001 From: Benton60 Date: Fri, 10 Apr 2026 17:55:26 +0000 Subject: [PATCH] Move to separate 0.0.0.0:0 and disconnected states for udp AF_UNSPEC --- src/platform/redox/socket.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platform/redox/socket.rs b/src/platform/redox/socket.rs index f344fb438e..6cc407c527 100644 --- a/src/platform/redox/socket.rs +++ b/src/platform/redox/socket.rs @@ -71,11 +71,12 @@ unsafe fn bind_or_connect( } AF_UNSPEC => match op { SocketCall::Bind => { - //bind is not a valid socket call for AF_UNSPEC + // Bind is not a valid socket call for AF_UNSPEC return Err(Errno(EAFNOSUPPORT)); } SocketCall::Connect => { - format!("0.0.0.0:0") + // When a connect is made using AF_UNSPEC TCP and UDP need to disconnect from the default peer + format!("disconnect") } _ => unreachable!(), },