mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
override the default ipv6_prefix only if ipv6_prefix is set
This commit is contained in:
@@ -557,7 +557,9 @@ static int recv_cookie_auth_reply(worker_st * ws)
|
||||
talloc_strdup(ws, msg->ipv6_network);
|
||||
}
|
||||
|
||||
ws->config->network.ipv6_prefix = msg->ipv6_prefix;
|
||||
if (msg->has_ipv6_prefix) {
|
||||
ws->config->network.ipv6_prefix = msg->ipv6_prefix;
|
||||
}
|
||||
|
||||
if (msg->has_rx_per_sec)
|
||||
ws->config->rx_per_sec = msg->rx_per_sec;
|
||||
|
||||
Reference in New Issue
Block a user