don't return if net.LookupIP fail (but still print the error)
This commit is contained in:
parent
6eb7b84495
commit
7c99754d5a
@ -165,9 +165,9 @@ func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
for containerName, mr = range containerMethodRegex {
|
||||
resolvedIPs, err := net.LookupIP(containerName)
|
||||
if err != nil {
|
||||
http.Error(w, http.StatusText(http.StatusForbidden), http.StatusForbidden)
|
||||
// http.Error(w, http.StatusText(http.StatusForbidden), http.StatusForbidden)
|
||||
log.Err(err).Send()
|
||||
return
|
||||
// return
|
||||
}
|
||||
for _, resolvedIP := range resolvedIPs {
|
||||
log.Debug().Msgf("resolvedIP: %s -- IP: %s", resolvedIP.String(), ip.String())
|
||||
|
Loading…
x
Reference in New Issue
Block a user