0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

omiclient: support for wintun driver

Use wintun driver if config contains

    --windows-driver wintun

Signed-off-by: Lev Stipakov <lev@openvpn.net>
This commit is contained in:
Lev Stipakov 2020-02-05 15:15:38 +02:00 committed by David Sommerseth
parent 0dbbbd3020
commit 7dabcb3cee
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2

View File

@ -366,6 +366,10 @@ private:
autologin = eval.autologin; autologin = eval.autologin;
// for compatibility with openvpn2
if (eval.windowsDriver == "wintun")
config->wintun = true;
if (!eval.autologin && management_query_passwords && !creds) if (!eval.autologin && management_query_passwords && !creds)
query_username_password("Auth", false, eval.staticChallenge, eval.staticChallengeEcho); query_username_password("Auth", false, eval.staticChallenge, eval.staticChallengeEcho);
else if (proxy_need_creds) else if (proxy_need_creds)