mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
send the Netmask when an IPv6 Address is assigned
This commit is contained in:
@@ -1555,10 +1555,15 @@ static int connect_handler(worker_st * ws)
|
||||
SEND_ERR(ret);
|
||||
} else {
|
||||
ret =
|
||||
cstp_printf(ws, "X-CSTP-Address: %s/%u\r\n",
|
||||
ws->vinfo.ipv6, ws->vinfo.ipv6_prefix);
|
||||
cstp_printf(ws, "X-CSTP-Address: %s\r\n",
|
||||
ws->vinfo.ipv6);
|
||||
SEND_ERR(ret);
|
||||
}
|
||||
|
||||
ret =
|
||||
cstp_printf(ws, "X-CSTP-Netmask: %s/%u\r\n",
|
||||
ws->vinfo.ipv6, ws->vinfo.ipv6_prefix);
|
||||
SEND_ERR(ret);
|
||||
}
|
||||
|
||||
for (i = 0; i < ws->vinfo.dns_size; i++) {
|
||||
|
||||
Reference in New Issue
Block a user