From 9f12983f34cf0e1ee66bde46b27b772690179770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Mon, 13 Nov 2023 10:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfindnet=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E5=90=8D=E4=B9=B1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plugins/findnet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/findnet.go b/Plugins/findnet.go index 7ba16ca..2d8d0c5 100644 --- a/Plugins/findnet.go +++ b/Plugins/findnet.go @@ -113,8 +113,8 @@ func read(text []byte, host string) error { if name != "" { result += "\n [->]" + name } - - for i := 1; i < len(hostname); i++ { + hostname = hostname[1:] + for i := 0; i < len(hostname); i++ { hostname[i] = strings.Replace(hostname[i], "00", "", -1) host, err := hex.DecodeString(hostname[i]) if err != nil {