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
commit30f00351c8fe6b33d6e7795fee5f0277a48c95c2 (patch)
tree7807e19e35b1791bd9017d299eef360e394d4f96 /service/ifaceconfig.go
parentservice: give indication of socket binding (diff)
downloadwireguard-windows-30f00351c8fe6b33d6e7795fee5f0277a48c95c2.tar.xz
wireguard-windows-30f00351c8fe6b33d6e7795fee5f0277a48c95c2.zip
service: simplify tunnel logging
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)
}