aboutsummaryrefslogtreecommitdiffstats
path: root/tun/wintun/wintun_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-07-18 12:26:57 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-18 12:26:57 +0200
commit6c50fedd8eecc6cb06d8da47514794eb211d5b3a (patch)
treec8895ef44ef915021770ac274693cb59811d4cea /tun/wintun/wintun_windows.go
parentwintun: calculate path of NDIS device object symbolic link (diff)
downloadwireguard-go-6c50fedd8eecc6cb06d8da47514794eb211d5b3a.tar.xz
wireguard-go-6c50fedd8eecc6cb06d8da47514794eb211d5b3a.zip
tun: windows: switch to NDIS device object
Diffstat (limited to 'tun/wintun/wintun_windows.go')
-rw-r--r--tun/wintun/wintun_windows.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/tun/wintun/wintun_windows.go b/tun/wintun/wintun_windows.go
index 160d51f..e8eadf5 100644
--- a/tun/wintun/wintun_windows.go
+++ b/tun/wintun/wintun_windows.go
@@ -612,11 +612,6 @@ func (wintun *Wintun) deviceData() (setupapi.DevInfo, *setupapi.DevInfoData, err
return 0, nil, windows.ERROR_OBJECT_NOT_FOUND
}
-// DataFileName returns the Wintun device data pipe name.
-func (wintun *Wintun) DataFileName() string {
- return fmt.Sprintf("\\\\.\\Global\\WINTUN%d", wintun.luidIndex)
-}
-
// NdisFileName returns the Wintun NDIS device object name.
func (wintun *Wintun) NdisFileName() (string, error) {
key, err := registry.OpenKey(registry.LOCAL_MACHINE, wintun.netRegKeyName(), registry.QUERY_VALUE)