From 09299e5e5a2a116eaa65ee72e05680b743ddcc01 Mon Sep 17 00:00:00 2001 From: yaling888 <73897884+yaling888@users.noreply.github.com> Date: Tue, 27 Jul 2021 02:38:41 +0800 Subject: [PATCH] Fix: error var name --- listener/tun/ipstack/gvisor/tundns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listener/tun/ipstack/gvisor/tundns.go b/listener/tun/ipstack/gvisor/tundns.go index 920e2019..de051f40 100644 --- a/listener/tun/ipstack/gvisor/tundns.go +++ b/listener/tun/ipstack/gvisor/tundns.go @@ -175,7 +175,7 @@ func CreateDNSServer(s *stack.Stack, resolver *dns.Resolver, mapper *dns.Resolve *id, endpoint, ports.Flags{LoadBalanced: true}, // it's actually the SO_REUSEPORT. Not sure it take effect. - nicID); err != nil { + nicID); tcpiperr != nil { log.Errorln("Unable to start UDP DNS on tun: %v", tcpiperr.String()) }