summaryrefslogtreecommitdiffstats
path: root/ssllabs-scan.go
diff options
context:
space:
mode:
authorIvan Ristic <ivanr@webkreator.com>2014-10-30 12:06:26 +0000
committerIvan Ristic <ivanr@webkreator.com>2014-10-30 12:06:26 +0000
commit919df8e09ab5004c5591d3ae8f222f620cf83d76 (patch)
tree203d949ec63faf2735f8858215b5c600673481a8 /ssllabs-scan.go
parent8a9f8b2f53d9ee0a237d23e765630e890de46878 (diff)
downloadssllabs-scan-919df8e09ab5004c5591d3ae8f222f620cf83d76.zip
ssllabs-scan-919df8e09ab5004c5591d3ae8f222f620cf83d76.tar.gz
ssllabs-scan-919df8e09ab5004c5591d3ae8f222f620cf83d76.tar.bz2
Don't perform DNS loopkup of the API hostname. This check fails with hostnames that are hardcoded in /etc/hosts.
Diffstat (limited to 'ssllabs-scan.go')
-rw-r--r--ssllabs-scan.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/ssllabs-scan.go b/ssllabs-scan.go
index 4a61cd4..60a718b 100644
--- a/ssllabs-scan.go
+++ b/ssllabs-scan.go
@@ -618,11 +618,9 @@ func readLines(path *string) ([]string, error) {
}
func validateURL(URL string) bool {
- u, err := url.Parse(URL)
+ _, err := url.Parse(URL)
if err != nil {
return false
- } else if validateHostname(u.Host) == false {
- return false
} else {
return true
}