From 30f00351c8fe6b33d6e7795fee5f0277a48c95c2 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 20 May 2019 13:53:48 +0200 Subject: service: simplify tunnel logging --- service/ifaceconfig.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'service/ifaceconfig.go') 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) } -- cgit v1.2.3-59-g8ed1b