Merge branch 'tmp-udp_port' into 'master'

Initialise udp_port using vhost config section

Closes #612

See merge request openconnect/ocserv!431
This commit is contained in:
Nikos Mavrogiannopoulos
2026-01-25 17:30:35 +00:00
2 changed files with 4 additions and 0 deletions

1
NEWS
View File

@@ -19,6 +19,7 @@
- Fixed maximum MTU tracking in server statistics
- 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

@@ -1644,6 +1644,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,