fix tcp/udp listening url

This commit is contained in:
yusing 2025-02-14 03:28:58 +08:00
parent 0a8bb7eae5
commit 267fd403da

View file

@ -86,7 +86,7 @@ func (r *Route) Validate() (err E.Error) {
} }
fallthrough fallthrough
case types.SchemeTCP, types.SchemeUDP: case types.SchemeTCP, types.SchemeUDP:
r.LisURL = E.Collect(errs, net.ParseURL, fmt.Sprintf("%s://%s:%d", r.Scheme, r.Host, r.Port.Listening)) r.LisURL = E.Collect(errs, net.ParseURL, fmt.Sprintf("%s://:%d", r.Scheme, r.Port.Listening))
fallthrough fallthrough
default: default:
if r.LoadBalance != nil && r.LoadBalance.Link == "" { if r.LoadBalance != nil && r.LoadBalance.Link == "" {