From: Jason A. Donenfeld Date: Sun, 20 May 2018 02:03:11 +0000 (+0200) Subject: Reduce the hack listener to once a second X-Git-Tag: 0.0.20180524~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b95a4c61a5170f1f60d3fcfd666d0421a8bca025;p=thirdparty%2Fwireguard-go.git Reduce the hack listener to once a second --- diff --git a/tun_linux.go b/tun_linux.go index cd928db..2782260 100644 --- a/tun_linux.go +++ b/tun_linux.go @@ -65,7 +65,7 @@ func (tun *NativeTun) RoutineHackListener() { return } select { - case <-time.After(time.Second / 10): + case <-time.After(time.Second): case <-tun.statusListenersShutdown: return }