aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--service/service_tunnel.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/service/service_tunnel.go b/service/service_tunnel.go
index 7ff8c0ff..5dae5d50 100644
--- a/service/service_tunnel.go
+++ b/service/service_tunnel.go
@@ -239,8 +239,11 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest,
}
}
}
+ if err == nil {
+ err = iface.SetDNS(conf.Interface.Dns)
+ }
if err != nil {
- logger.Error.Println("Unable to set interface addresses and routes:", err)
+ logger.Error.Println("Unable to set interface addresses, routes, or DNSes:", err)
changes <- svc.Status{State: svc.StopPending}
exitCode = ERROR_NETWORK_BUSY
device.Close()