diff --git a/service/OneService.cpp b/service/OneService.cpp index 8c0e64e97..6156e46bb 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -676,6 +676,9 @@ public: readLocalSettings(); applyLocalConfig(); + // Save original port number to show it if bind error + const int _configuredPort = _primaryPort; + // Make sure we can use the primary port, and hunt for one if configured to do so const int portTrials = (_primaryPort == 0) ? 256 : 1; // if port is 0, pick random for(int k=0;k