mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
export IPV6_PREFIX to scripts
This commit is contained in:
@@ -113,6 +113,9 @@ const char* script;
|
||||
if (remote[0] == 0)
|
||||
setenv("IP_REMOTE", remote, 1);
|
||||
setenv("IPV6_REMOTE", remote, 1);
|
||||
|
||||
snprintf(remote, sizeof(remote), "%u", proc->ipv6->prefix);
|
||||
setenv("IPV6_PREFIX", remote, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user