diff --git a/internal/route/route.go b/internal/route/route.go index 8f1aa03c..3059483e 100644 --- a/internal/route/route.go +++ b/internal/route/route.go @@ -254,7 +254,7 @@ func (r *Route) validate() gperr.Error { } // return error if route is localhost: but route is not agent - if !r.IsAgent() { + if !r.IsAgent() && !r.ShouldExclude() { switch r.Host { case "localhost", "127.0.0.1": switch r.Port.Proxy {