This commit is contained in:
shadow1ng
2020-11-16 09:51:41 +08:00
parent a1900086d6
commit 8dc8b6e652
4 changed files with 5 additions and 57 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import (
"time"
)
func WebTitle(info common.HostInfo,ch chan int,wg *sync.WaitGroup) (err error, result string) {
func WebTitle(info *common.HostInfo,ch chan int,wg *sync.WaitGroup) (err error, result string) {
info.Url = fmt.Sprintf("http://%s:%s",info.Host,info.Ports)
err,result = geturl(info)
wg.Done()
@@ -20,7 +20,7 @@ func WebTitle(info common.HostInfo,ch chan int,wg *sync.WaitGroup) (err error, r
}
func geturl(info common.HostInfo) (err error, result string) {
func geturl(info *common.HostInfo) (err error, result string) {
url := info.Url
var client = &http.Client{Timeout:time.Duration(info.Timeout)*time.Second }
res,err:=http.NewRequest("GET",url,nil)