Closed przmv closed 3 years ago
As the error described, the scheme is missing:
$ go run cmd/webanalyze/main.go -host http://google.de:80
:: webanalyze : v1.0
:: workers : 4
:: apps : apps.json
:: crawl count : 0
:: search subdomains : true
:: follow redirects : false
http://google.de:80 (0.2s):
Google Web Server, (Web servers)
But it works OK without both scheme and port:
webanalyze -host google.de
:: webanalyze : v1.0
:: workers : 4
:: apps : apps.json
:: crawl count : 0
:: search subdomains : true
http://google.de (0.2s):
Google Web Server, (Web servers)
It does, but when you omit the scheme you cant pass a port. It's how URL parsing from the standard lib works in Go.