From 69f0a58aad575bada9dabb4c0ffaf6019bbc8396 Mon Sep 17 00:00:00 2001 From: it-man-cn Date: Sat, 26 Aug 2017 11:55:02 +0800 Subject: [PATCH] =?UTF-8?q?check=20target=E4=B8=8D=E8=83=BD=E6=98=AF?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=90=8E=E7=9A=84ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Target应当是域名 --- cron/fetcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron/fetcher.go b/cron/fetcher.go index 8e399aa..4f6a6be 100644 --- a/cron/fetcher.go +++ b/cron/fetcher.go @@ -87,9 +87,9 @@ func newDetectedItem(s *model.Strategy, ip string, idc string) g.DetectedItem { schema, domain, port, path := utils.ParseUrl(s.Url) if port == "" { - detectedItem.Target = schema + "//" + ip + path + detectedItem.Target = schema + "//" + domain + path } else { - detectedItem.Target = schema + "//" + ip + ":" + port + path + detectedItem.Target = schema + "//" + domain + ":" + port + path } detectedItem.Domain = domain