1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-04 21:42:57 +02:00

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

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