diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-20 13:53:48 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-20 13:53:48 +0200 |
commit | bafe3eea8b10780167d0c3f96c26c7db3fe95b76 (patch) | |
tree | 7807e19e35b1791bd9017d299eef360e394d4f96 /service/ifaceconfig.go | |
parent | service: give indication of socket binding (diff) | |
download | wireguard-windows-bafe3eea8b10780167d0c3f96c26c7db3fe95b76.tar.xz wireguard-windows-bafe3eea8b10780167d0c3f96c26c7db3fe95b76.zip |
service: simplify tunnel logging
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | service/ifaceconfig.go | 3 |
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) } |