Merge pull request #1480 from micro/host-fix

Add Debugging
This commit is contained in:
ben-toogood 2020-04-03 15:07:22 +01:00 committed by GitHub
commit 7f8b35e295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,8 @@ func namespaceFromRequest(req *http.Request) (string, error) {
host, _, _ = net.SplitHostPort(req.Host)
}
logger.Infof("Host is %v", host)
// check for an ip address
if net.ParseIP(host) != nil {
return auth.DefaultNamespace, nil