Skip to content

Commit

Permalink
2023/2/21更新
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-pingo committed Feb 21, 2023
1 parent dd8c1e9 commit 0d6eb32
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion result/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,10 @@ func Print() {
}

for _, u := range ResultUrlHost {
u.Url, _ = url.QueryUnescape(u.Url)
urlx, err := url.QueryUnescape(u.Url)
if err == nil {
u.Url = urlx
}
if cmd.S != "" && len(u.Title) != 0 {
if u.Status == "疑似危险路由" {
fmt.Printf(color.LightBlue.Sprintf("%-"+ulen+"s", u.Url) + color.LightGreen.Sprintf(" [ %s ]\n", u.Status))
Expand All @@ -551,6 +554,10 @@ func Print() {
fmt.Println("\n" + strconv.Itoa(len(ResultUrlOther)) + " URL to Other")
}
for _, u := range ResultUrlOther {
urlx, err := url.QueryUnescape(u.Url)
if err == nil {
u.Url = urlx
}
if cmd.S != "" && len(u.Title) != 0 {
if u.Status == "疑似危险路由" {
fmt.Printf(color.LightBlue.Sprintf("%-"+ulen+"s", u.Url) + color.LightGreen.Sprintf(" [ %s ]\n", u.Status))
Expand Down

0 comments on commit 0d6eb32

Please sign in to comment.