skx / overseer

A golang-based remote protocol tester for testing sites & service availability

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URIs cannot have custom ports

skx opened this issue · comments

The following fails:

   http://localhost:8080/ must run http

There is a DNS-failure trying to resolve the hostname localhost:8080. Even if that worked though we have a second issue - we look at the URI to find the port:

port := 80
if strings.HasPrefix(tst.Target, "https:") {
	port = 443
}

So that needs updating too.