mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 08:16:58 +08:00
Don't forget to initialise udp_port for vhost
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
1
NEWS
1
NEWS
@@ -7,6 +7,7 @@
|
||||
- Fixed the 'ping-leases' option, which was broken since version 1.1.1
|
||||
- Fixed 'iroute' option processing to handle multiple routes (#625)
|
||||
- Fixed session accounting for roaming users (#674)
|
||||
- Fixed ignored udp-port in vhost (#612)
|
||||
- occtl: fix invalid JSON output in `occtl -j show iroutes` (#661)
|
||||
- occtl: fix regression with trailing commas in `occtl -j show sessions` (#669)
|
||||
- occtl: fix missing column headers in 'show ip bans' output (#677)
|
||||
|
||||
@@ -1640,6 +1640,9 @@ static void check_cfg(vhost_cfg_st *vhost, vhost_cfg_st *defvhost,
|
||||
}
|
||||
}
|
||||
|
||||
if (vhost->perm_config.udp_port == 0 && defvhost)
|
||||
vhost->perm_config.udp_port = defvhost->perm_config.udp_port;
|
||||
|
||||
if (vhost->perm_config.cert_size == 0 ||
|
||||
vhost->perm_config.key_size == 0) {
|
||||
fprintf(stderr,
|
||||
|
||||
Reference in New Issue
Block a user