]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
wintun: do not load dll in init()
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 9 Dec 2020 00:46:55 +0000 (01:46 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Jan 2021 13:49:44 +0000 (14:49 +0100)
commitca9edf1c6301ed1498a56124d018474a68d04b25
treef44f3c7ba5c80c4eb559636fcca66697122ecdb5
parent347ce76bbcc6d2351dc298a1c8ca5604534bebec
wintun: do not load dll in init()

This prevents linking to wintun.dll until it's actually needed, which
should improve startup time.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tun/wintun/dll_fromfile_windows.go
tun/wintun/dll_fromrsrc_windows.go
tun/wintun/dll_windows.go
tun/wintun/session_windows.go
tun/wintun/wintun_windows.go