From cc90b2d5a876827b2e24ae319a4496a63d522cb2 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Sat, 19 Aug 2023 14:25:30 +0100 Subject: [PATCH] Add missing code to create IPV6 streams --- Source/win32/NSStream.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/win32/NSStream.m b/Source/win32/NSStream.m index b4388fc5ac..b66e78deed 100644 --- a/Source/win32/NSStream.m +++ b/Source/win32/NSStream.m @@ -951,6 +951,16 @@ + (void) getStreamsToHost: (NSHost *)host initToAddr: address port: port]); sock = socket(PF_INET, SOCK_STREAM, 0); + if (!ins) + { +#if defined(PF_INET6) + ins = AUTORELEASE([[GSInet6InputStream alloc] + initToAddr: address port: port]); + outs = AUTORELEASE([[GSInet6OutputStream alloc] + initToAddr: address port: port]); +#endif + } + /* * Windows only permits a single event to be associated with a socket * at any time, but the runloop system only allows an event handle to