aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/errors.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-03 16:53:05 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-03 16:53:05 +0200
commitf483a403713d1e8cf26d8d2e09b370a0f7003348 (patch)
tree18943c62deb6aa40cdaa4a2b6cad931546d0ff43 /service/errors.go
parentfirewall: introduce incomplete untested prototype (diff)
downloadwireguard-windows-f483a403713d1e8cf26d8d2e09b370a0f7003348.tar.xz
wireguard-windows-f483a403713d1e8cf26d8d2e09b370a0f7003348.zip
service: wire up firewall
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/errors.go')
-rw-r--r--service/errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/errors.go b/service/errors.go
index e456818b..ecc0283a 100644
--- a/service/errors.go
+++ b/service/errors.go
@@ -21,6 +21,7 @@ const (
ErrorDetermineWintunName
ErrorUAPIListen
ErrorDNSLookup
+ ErrorFirewall
ErrorDeviceSetConfig
ErrorBindSocketsToDefaultRoutes
ErrorSetNetConfig
@@ -51,6 +52,8 @@ func (e Error) Error() string {
return "Unable to listen on named pipe"
case ErrorDNSLookup:
return "Unable to resolve one or more DNS hostname endpoints"
+ case ErrorFirewall:
+ return "Unable to enable firewall rules"
case ErrorDeviceSetConfig:
return "Unable to set device configuration"
case ErrorBindSocketsToDefaultRoutes: