From: pcarana Date: Wed, 25 Nov 2020 22:08:04 +0000 (-0600) Subject: Fix server.address examples X-Git-Tag: v1.5.0~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54bd95770b845e28526479ee649346ffd9c3ad6a;p=thirdparty%2FFORT-validator.git Fix server.address examples --- diff --git a/docs/usage.md b/docs/usage.md index e0b37f44..89f4f41f 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -882,7 +882,9 @@ The configuration options are mostly the same as the ones from the `argv` interf "daemon": false, "server": { - "address": "127.0.0.1", + "address": [ + "127.0.0.1" + ], "port": "8323", "backlog": 16, "interval": { diff --git a/examples/config.json b/examples/config.json index 163e306a..0909ea60 100644 --- a/examples/config.json +++ b/examples/config.json @@ -7,7 +7,9 @@ "mode": "server", "daemon": false, "server": { - "address": "127.0.0.1", + "address": [ + "127.0.0.1" + ], "port": "8323", "backlog": 64, "interval": { diff --git a/man/fort.8 b/man/fort.8 index 30dfc139..4137dde0 100644 --- a/man/fort.8 +++ b/man/fort.8 @@ -79,8 +79,7 @@ Path to a JSON file from where additional configuration will be read. The configuration options are mostly the same as the ones presented in this manual. Each property is mapped as a member of the main JSON object, the members that contain a dot '.' must be set as objects (eg. -"--server.address=127.0.0.1" will be set as "{ "server": { "address": -"127.0.0.1" } }". +"--server.port=8323" will be set as "{ "server": { "port": "8323" } }". .P An example configuration file can be seen in this manual at the \fBEXAMPLES\fR section. @@ -424,7 +423,7 @@ By default, the mode is \fIserver\fR. .RE .P -.B \-\-server.address=\fINODE\fR +.B \-\-server.address=\fINODE(S)\fR .RS 4 List of hostnames or numeric host addresses the RTR server will be bound to. Must resolve to (or be) bindable IP addresses. IPv4 and IPv6 are supported. @@ -1221,7 +1220,9 @@ to a specific value: "daemon": false, "slurm": "/tmp/fort/test.slurm", "server": { - "address": "127.0.0.1", + "address": [ + "127.0.0.1" + ], "port": "8323", "backlog": 64, "interval": {