summaryrefslogtreecommitdiff
path: root/service/OneService.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'service/OneService.hpp')
-rw-r--r--service/OneService.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/service/OneService.hpp b/service/OneService.hpp
index 7a4f7827..70d024bc 100644
--- a/service/OneService.hpp
+++ b/service/OneService.hpp
@@ -89,8 +89,12 @@ public:
* Once created, you must call the run() method to actually start
* processing.
*
+ * The port is saved to a file in the home path called zerotier-one.port,
+ * which is used by the CLI and can be used to see which port was chosen if
+ * 0 (random port) is picked.
+ *
* @param hp Home path
- * @param port TCP and UDP port for packets and HTTP control
+ * @param port TCP and UDP port for packets and HTTP control (if 0, pick random port)
* @param overrideRootTopology String-serialized root topology (for testing, default: NULL)
*/
static OneService *newInstance(