From b90f22861404f2a2cdd305055c786bb73464af01 Mon Sep 17 00:00:00 2001
From: Hans Nilsson
Date: Thu, 7 Apr 2016 16:30:35 +0200
Subject: ssh: make ssh:daemon choose port when Port=0 in the arguments
---
lib/ssh/doc/src/ssh.xml | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
(limited to 'lib/ssh/doc/src')
diff --git a/lib/ssh/doc/src/ssh.xml b/lib/ssh/doc/src/ssh.xml
index 850557444d..a9e843c36c 100644
--- a/lib/ssh/doc/src/ssh.xml
+++ b/lib/ssh/doc/src/ssh.xml
@@ -359,7 +359,8 @@
Starts a server listening for SSH connections on the given
- port.
+ port. If the Port is 0, a random free port is selected. See
+ daemon_info/1 about how to find the selected port number.
Options:
@@ -679,6 +680,18 @@
+
+ daemon_info(Daemon) -> {ok, [{port,Port}]} | {error,Error}
+ Get info about a daemon
+
+ Port = integer()
+ Error = bad_daemon_ref
+
+
+ Returns a key-value list with information about the daemon. For now, only the listening port is returned. This is intended for the case the daemon is started with the port set to 0.
+
+
+
default_algorithms() -> algs_list()
Get a list declaring the supported algorithms
--
cgit v1.2.3