]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
wintun: revise GetInterface()
authorSimon Rozman <simon@rozman.si>
Fri, 24 May 2019 07:28:50 +0000 (09:28 +0200)
committerSimon Rozman <simon@rozman.si>
Fri, 24 May 2019 07:29:57 +0000 (09:29 +0200)
commit6a0a3a54067182aee4c2cb4c7ef7ac5aaf2fd961
treef2278f9c28d443d198e2fdb7819753a4d9d5b682
parent8fdcf5ee30d9576b5ddb163180f5d5506a349eea
wintun: revise GetInterface()

- Make foreign interface found error numeric to ease condition
  detection.
- Update GetInterface() documentation.
- Make tun.CreateTUN() quit when foreign interface found before
  attempting to create a Wintun interface with a duplicate name.
  Creation is futile.

Signed-off-by: Simon Rozman <simon@rozman.si>
tun/tun_windows.go
tun/wintun/wintun_windows.go