From 2397504d05246b6a9f6507ac6fd1201f57a681bf Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 12 Dec 2022 12:39:25 -0500 Subject: [PATCH] Use an ephemeral port for darwin-framework-tool. (#24035) We should not be hardcoding a port here, especially not one in the "ports that actually get allocated to things" range. --- .../darwin-framework-tool/commands/common/CHIPCommandBridge.mm | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm index 613a7737181b52..7294df0c8a5ad9 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm +++ b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm @@ -26,7 +26,6 @@ #include "MTRError_Utils.h" -const uint16_t kListenPort = 5541; static CHIPToolPersistentStorageDelegate * storage = nil; std::set CHIPCommandBridge::sDeferredCleanups; std::map CHIPCommandBridge::mControllers; @@ -118,7 +117,6 @@ } auto params = [[MTRDeviceControllerFactoryParams alloc] initWithStorage:storage]; - params.port = @(kListenPort); params.shouldStartServer = YES; params.otaProviderDelegate = mOTADelegate; NSArray * paaCertResults;