]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Use hostname as Wintun ifname (if ifname not specified)
authorDaniel Lenski <dlenski@gmail.com>
Wed, 31 Mar 2021 01:08:00 +0000 (18:08 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Fri, 10 Sep 2021 18:26:56 +0000 (11:26 -0700)
commit48bd28aaddab4979103fc307141ddfea3a60794b
treeecff28fdcaab01b6526d1c1cff82b78af9059538
parentb24f806b0df36c60517cb9846d49e7ad219cfede
Use hostname as Wintun ifname (if ifname not specified)

Without this change, OpenConnect will *only* attempt to use the Wintun
driver if `-i InterfaceName`, and will require TAP-Windows driver otherwise.

That seems like a surprising and hard-to-discover behavior.

Instead, we should use the VPN server's hostname as a sane default interface
name with Wintun, and only attempt to use TAP-Windows as a fallback in the
case where Wintun can't be initialized.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
tun-win32.c