Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

check target不能用解析后的ip #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cron/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down