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:
Dimitri Papadopoulos
2024-07-31 11:00:02 +02:00
parent 5e39f4c7f0
commit 79f8eb35f8
2 changed files with 4 additions and 0 deletions

1
NEWS
View File

@@ -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)

View File

@@ -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,