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 May 2, 2023
1 parent 75f1a58 commit 5380702
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 5380702

Please sign in to comment.