mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-07 07:17:00 +08:00
Fix tun device usage on *BSD.
SIOCSIFADDR is deprecated on *BSD. Instead, use SIOCAIFADDR to add an alias. Also destroy the tun device with SIOCIFDESTROY when the client disconnects.
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
264114e799
commit
de0388a3f7
@@ -201,6 +201,8 @@ void remove_proc(main_server_st * s, struct proc_st *proc, unsigned k)
|
||||
proc->cookie_ptr->proc = NULL;
|
||||
}
|
||||
|
||||
close_tun(s, proc);
|
||||
|
||||
talloc_free(proc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user