mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 04:52:35 +02:00
fix tcp/udp listening url
This commit is contained in:
parent
0a8bb7eae5
commit
267fd403da
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ func (r *Route) Validate() (err E.Error) {
|
|||
}
|
||||
fallthrough
|
||||
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
|
||||
default:
|
||||
if r.LoadBalance != nil && r.LoadBalance.Link == "" {
|
||||
|
|
Loading…
Add table
Reference in a new issue