aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--services/errors.go3
-rw-r--r--tunnel/service.go7
2 files changed, 0 insertions, 10 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:
diff --git a/tunnel/service.go b/tunnel/service.go
index dbaa3133..b3699dd5 100644
--- a/tunnel/service.go
+++ b/tunnel/service.go
@@ -162,13 +162,6 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest,
serviceError = services.ErrorCreateWintun
return
}
- log.Println("Determining Wintun device name")
- realInterfaceName, err := wintun.Name()
- if err != nil {
- serviceError = services.ErrorDetermineWintunName
- return
- }
- conf.Name = realInterfaceName
nativeTun = wintun.(*tun.NativeTun)
log.Println("Enabling firewall rules")