From 868be850f8f4a6df065013df3cf527bd5498a8cc Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Tue, 29 Dec 2020 14:58:57 +0300 Subject: [PATCH] remove unused --- src/main/preconfig_pos.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/main/preconfig_pos.go b/src/main/preconfig_pos.go index c91d23b..aea3c80 100644 --- a/src/main/preconfig_pos.go +++ b/src/main/preconfig_pos.go @@ -28,22 +28,4 @@ func Preconfig(dkill bool) { } }() } - // - // //dns resover - // addrs, err := net.LookupHost("www.themoviedb.org") - // if len(addrs) == 0 { - // fmt.Println("Check dns", addrs, err) - // - // fn := func(ctx context.Context, network, address string) (net.Conn, error) { - // d := net.Dialer{} - // return d.DialContext(ctx, "udp", "1.1.1.1:53") - // } - // - // net.DefaultResolver = &net.Resolver{ - // Dial: fn, - // } - // - // addrs, err = net.LookupHost("www.themoviedb.org") - // fmt.Println("Check new dns", addrs, err) - // } }