diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-27 17:08:11 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-27 17:49:56 +0200 |
commit | 259f461a11c9e0ad55efefd308744d379c324639 (patch) | |
tree | 11b10cf62fdd615c15d0819390f36d26f1cc238b | |
parent | ui: suppress extranous deactivated notification in tray (diff) | |
download | wireguard-windows-259f461a11c9e0ad55efefd308744d379c324639.tar.xz wireguard-windows-259f461a11c9e0ad55efefd308744d379c324639.zip |
service: tunnel: UAPI serialization is always DNS related
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | service/errors.go | 6 | ||||
-rw-r--r-- | service/service_tunnel.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/service/errors.go b/service/errors.go index a2050460..d3f02f54 100644 --- a/service/errors.go +++ b/service/errors.go @@ -20,7 +20,7 @@ const ( ErrorCreateWintun ErrorDetermineWintunName ErrorUAPIListen - ErrorUAPISerialization + ErrorDNSLookup ErrorDeviceSetConfig ErrorBindSocketsToDefaultRoutes ErrorSetNetConfig @@ -48,8 +48,8 @@ func (e Error) Error() string { return "Unable to determine Wintun name" case ErrorUAPIListen: return "Unable to listen on named pipe" - case ErrorUAPISerialization: - return "Unable to serialize configuration into uapi form" + case ErrorDNSLookup: + return "Unable to resolve one or more DNS hostname endpoints" case ErrorDeviceSetConfig: return "Unable to set device configuration" case ErrorBindSocketsToDefaultRoutes: diff --git a/service/service_tunnel.go b/service/service_tunnel.go index f8c843f6..dd681a33 100644 --- a/service/service_tunnel.go +++ b/service/service_tunnel.go @@ -117,7 +117,7 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest, uapiConf, err := conf.ToUAPI() if err != nil { - serviceError = ErrorUAPISerialization + serviceError = ErrorDNSLookup return } ipcErr := dev.IpcSetOperation(bufio.NewReader(strings.NewReader(uapiConf))) |