ocserv: split UDP and TCP port configs

Added a new config entry udp_port to split UDP port from TCP. This is
useful when particular port is blocked by the ISP.

udp_port falls back to port if not set to be compatible with current
config file.

Also fixed an ifname typo from the last commit.

Signed-off-by: Qian Sheng <billsq@billsq.me>
This commit is contained in:
Qian
2017-04-27 17:55:11 -07:00
parent a1a96fc9fa
commit 4227dad822
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ max-same-clients = |MAX_SAME|
# TCP and UDP port number
tcp-port = |PORT|
|UDP|udp-port = |PORT|
|UDP|udp-port = |UDP_PORT|
# Stats report time. The number of seconds after which each
# worker process will report its usage statistics (number of