]> 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>
Wed, 9 Dec 2020 00:46:55 +0000 (01:46 +0100)
commit310ae107c346178c2d985792665dcd071ebc044b
treef44f3c7ba5c80c4eb559636fcca66697122ecdb5
parentf64d2a2bbc915338d8c77700883466be0e2dee87
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