mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
document tun assignment
This commit is contained in:
@@ -105,6 +105,10 @@ struct ip_lease_st t;
|
||||
|
||||
void steal_ip_leases(struct proc_st* proc, struct proc_st *thief)
|
||||
{
|
||||
/* here we reset the old tun device, and assign the old addresses
|
||||
* to a new device. We cannot re-use the old device because the
|
||||
* fd is only available to the worker process and not here (main)
|
||||
*/
|
||||
reset_tun(proc);
|
||||
|
||||
thief->ipv4 = talloc_move(thief, &proc->ipv4);
|
||||
|
||||
Reference in New Issue
Block a user