aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/ifaceconfig.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 13:53:48 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 13:53:48 +0200
commitbafe3eea8b10780167d0c3f96c26c7db3fe95b76 (patch)
tree7807e19e35b1791bd9017d299eef360e394d4f96 /service/ifaceconfig.go
parentservice: give indication of socket binding (diff)
downloadwireguard-windows-bafe3eea8b10780167d0c3f96c26c7db3fe95b76.tar.xz
wireguard-windows-bafe3eea8b10780167d0c3f96c26c7db3fe95b76.zip
service: simplify tunnel logging
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/ifaceconfig.go')
-rw-r--r--service/ifaceconfig.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/service/ifaceconfig.go b/service/ifaceconfig.go
index 39eb4b5e..ea28ecdc 100644
--- a/service/ifaceconfig.go
+++ b/service/ifaceconfig.go
@@ -347,8 +347,7 @@ func enableFirewall(conf *conf.Config, tun *tun.NativeTun) error {
}
}
if restrictAll && len(conf.Interface.DNS) == 0 {
- name, _ := tun.Name()
- log.Printf("[%s] Warning: no DNS server specified, despite having an allowed IPs of 0.0.0.0/0 or ::/0. There may be connectivity issues.", name)
+ log.Println("Warning: no DNS server specified, despite having an allowed IPs of 0.0.0.0/0 or ::/0. There may be connectivity issues.")
}
return firewall.EnableFirewall(tun.LUID(), conf.Interface.DNS, restrictAll)
}