浏览代码

docs adjusted

Oleg Moskalenko 9 年之前
父节点
当前提交
90fd7546a8
共有 3 个文件被更改,包括 7 次插入7 次删除
  1. 2 2
      README.turnserver
  2. 4 4
      man/man1/turnserver.1
  3. 1 1
      src/apps/relay/mainrelay.c

+ 2 - 2
README.turnserver

@@ -207,8 +207,6 @@ Flags:
 --no-tcp-relay		Do not allow TCP relay endpoints defined in RFC 6062, 
 --no-tcp-relay		Do not allow TCP relay endpoints defined in RFC 6062, 
 			use only UDP relay endpoints as defined in RFC 5766. 
 			use only UDP relay endpoints as defined in RFC 5766. 
 
 
---stale-nonce		Use extra security with nonce value having limited lifetime (600 secs). 
-
 --no-stdout-log		Flag to prevent stdout log messages.
 --no-stdout-log		Flag to prevent stdout log messages.
 			By default, all log messages are going to both stdout and to
 			By default, all log messages are going to both stdout and to
 			the configured log file. With this option everything will be going to 
 			the configured log file. With this option everything will be going to 
@@ -261,6 +259,8 @@ Flags:
     
     
 Options with required values:  
 Options with required values:  
 
 
+--stale-nonce[=600]		Use extra security with nonce value having limited lifetime (default 600 secs).
+
 -d, --listening-device	Listener interface device.
 -d, --listening-device	Listener interface device.
 			(NOT RECOMMENDED. Optional functionality, Linux only). 
 			(NOT RECOMMENDED. Optional functionality, Linux only). 
 			The turnserver process must have root privileges to bind the 
 			The turnserver process must have root privileges to bind the 

+ 4 - 4
man/man1/turnserver.1

@@ -314,10 +314,6 @@ Do not allow TCP relay endpoints defined in RFC 6062,
 use only UDP relay endpoints as defined in RFC 5766. 
 use only UDP relay endpoints as defined in RFC 5766. 
 .TP
 .TP
 .B
 .B
-\fB\-\-stale\-nonce\fP
-Use extra security with nonce value having limited lifetime (600 secs). 
-.TP
-.B
 \fB\-\-no\-stdout\-log\fP
 \fB\-\-no\-stdout\-log\fP
 Flag to prevent stdout log messages.
 Flag to prevent stdout log messages.
 By default, all log messages are going to both stdout and to
 By default, all log messages are going to both stdout and to
@@ -399,6 +395,10 @@ Help.
 Options with required values:
 Options with required values:
 .TP
 .TP
 .B
 .B
+\fB\-\-stale\-nonce\fP[=600]
+Use extra security with nonce value having limited lifetime (default 600 secs).
+.TP
+.B
 \fB\-d\fP, \fB\-\-listening\-device\fP
 \fB\-d\fP, \fB\-\-listening\-device\fP
 Listener interface device.
 Listener interface device.
 (NOT RECOMMENDED. Optional functionality, Linux only). 
 (NOT RECOMMENDED. Optional functionality, Linux only). 

+ 1 - 1
src/apps/relay/mainrelay.c

@@ -547,7 +547,7 @@ static char Usage[] = "Usage: turnserver [options]\n"
 " --simple-log					This flag means that no log file rollover will be used, and the log file\n"
 " --simple-log					This flag means that no log file rollover will be used, and the log file\n"
 "						name will be constructed as-is, without PID and date appendage.\n"
 "						name will be constructed as-is, without PID and date appendage.\n"
 "						This option can be used, for example, together with the logrotate tool.\n"
 "						This option can be used, for example, together with the logrotate tool.\n"
-" --stale-nonce					Use extra security with nonce value having limited lifetime (600 secs).\n"
+" --stale-nonce[=600]				Use extra security with nonce value having limited lifetime (default 600 secs).\n"
 " -S, --stun-only				Option to set standalone STUN operation only, all TURN requests will be ignored.\n"
 " -S, --stun-only				Option to set standalone STUN operation only, all TURN requests will be ignored.\n"
 "     --no-stun					Option to suppress STUN functionality, only TURN requests will be processed.\n"
 "     --no-stun					Option to suppress STUN functionality, only TURN requests will be processed.\n"
 " --alternate-server		<ip:port>	Set the TURN server to redirect the allocate requests (UDP and TCP services).\n"
 " --alternate-server		<ip:port>	Set the TURN server to redirect the allocate requests (UDP and TCP services).\n"