aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/services
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-26 14:21:12 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-26 14:48:41 -0600
commitd14d26cbbbe8081aab1b4e0cd7627311fd3d9cad (patch)
treeba3c0caa4099d1604f6ed77bf0086ac79ea67b4d /services
parentelevate: use upstream windows directory function (diff)
downloadwireguard-windows-d14d26cbbbe8081aab1b4e0cd7627311fd3d9cad.tar.xz
wireguard-windows-d14d26cbbbe8081aab1b4e0cd7627311fd3d9cad.zip
tunnel: do not query real interface name
We want to enforce the relation between the socket name and the service name, especially since the wintun adapter name might get a 1 or 2 appended depending on weird Nci duplication detection. So we just stick with the configuration-given name throughout. Also, the user can change the adapter name at runtime, which is all the more reason why maybe we shouldn't care about it so much. Reported-by: Nenad Kozul <me@nenadkozul.com>
Diffstat (limited to 'services')
-rw-r--r--services/errors.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/services/errors.go b/services/errors.go
index c9b2c049..237cb2c3 100644
--- a/services/errors.go
+++ b/services/errors.go
@@ -19,7 +19,6 @@ const (
ErrorRingloggerOpen
ErrorLoadConfiguration
ErrorCreateWintun
- ErrorDetermineWintunName
ErrorUAPIListen
ErrorDNSLookup
ErrorFirewall
@@ -46,8 +45,6 @@ func (e Error) Error() string {
return "Unable to load configuration from path"
case ErrorCreateWintun:
return "Unable to create Wintun device"
- case ErrorDetermineWintunName:
- return "Unable to determine Wintun name"
case ErrorUAPIListen:
return "Unable to listen on named pipe"
case ErrorDNSLookup: