mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 13:02:33 +02:00
fixed stream route healthchecking wrong address
This commit is contained in:
parent
67b2286df0
commit
25a2de2a90
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ func validateStreamEntry(m *RawEntry, errs *E.Builder) *StreamEntry {
|
||||||
host := E.Collect(errs, fields.ValidateHost, m.Host)
|
host := E.Collect(errs, fields.ValidateHost, m.Host)
|
||||||
port := E.Collect(errs, fields.ValidateStreamPort, m.Port)
|
port := E.Collect(errs, fields.ValidateStreamPort, m.Port)
|
||||||
scheme := E.Collect(errs, fields.ValidateStreamScheme, m.Scheme)
|
scheme := E.Collect(errs, fields.ValidateStreamScheme, m.Scheme)
|
||||||
url := E.Collect(errs, net.ParseURL, fmt.Sprintf("%s://%s:%d", scheme.ListeningScheme, host, port.ListeningPort))
|
url := E.Collect(errs, net.ParseURL, fmt.Sprintf("%s://%s:%d", scheme.ListeningScheme, host, port.ProxyPort))
|
||||||
idleWatcherCfg := E.Collect(errs, idlewatcher.ValidateConfig, cont)
|
idleWatcherCfg := E.Collect(errs, idlewatcher.ValidateConfig, cont)
|
||||||
|
|
||||||
if errs.HasError() {
|
if errs.HasError() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue