Skip to content

Commit

Permalink
Use an ephemeral port for darwin-framework-tool. (#24035)
Browse files Browse the repository at this point in the history
We should not be hardcoding a port here, especially not one in the
"ports that actually get allocated to things" range.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jul 26, 2023
1 parent 8bd309f commit 2397504
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#include "MTRError_Utils.h"

const uint16_t kListenPort = 5541;
static CHIPToolPersistentStorageDelegate * storage = nil;
std::set<CHIPCommandBridge *> CHIPCommandBridge::sDeferredCleanups;
std::map<std::string, MTRDeviceController *> CHIPCommandBridge::mControllers;
Expand Down Expand Up @@ -118,7 +117,6 @@
}

auto params = [[MTRDeviceControllerFactoryParams alloc] initWithStorage:storage];
params.port = @(kListenPort);
params.shouldStartServer = YES;
params.otaProviderDelegate = mOTADelegate;
NSArray<NSData *> * paaCertResults;
Expand Down

0 comments on commit 2397504

Please sign in to comment.