From 7fe4bfa2c97a80a2cf962e92f21899e1e84684a2 Mon Sep 17 00:00:00 2001 From: Hardik Garg Date: Thu, 20 Jun 2024 15:11:54 +0530 Subject: [PATCH] updated NW params for Wifi AP (#434) --- ios/OpenBot/OpenBot/Data/Server/Connection.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/OpenBot/OpenBot/Data/Server/Connection.swift b/ios/OpenBot/OpenBot/Data/Server/Connection.swift index 5addcd2ab..533d7a24e 100644 --- a/ios/OpenBot/OpenBot/Data/Server/Connection.swift +++ b/ios/OpenBot/OpenBot/Data/Server/Connection.swift @@ -31,6 +31,7 @@ class Connection: sendInitialMessageDelegate, startStreamDelegate { tcpOptions.keepaliveIdle = 2 let parameters = NWParameters(tls: nil, tcp: tcpOptions) parameters.includePeerToPeer = true + parameters.allowLocalEndpointReuse = true connection = NWConnection(to: endpoint, using: parameters) start() msgDelegate = self