File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,13 @@ func ResolveVHost(addr string) string {
186
186
if idx := strings .IndexByte (addr , ':' ); idx == 0 {
187
187
// only port, then return the 0.0.0.0
188
188
return /* "0.0.0.0" */ "localhost" + addr [idx :]
189
+ } else if idx > 0 { // if 0.0.0.0:80 let's just convert it to localhost.
190
+ if addr [0 :idx ] == "0.0.0.0" {
191
+ if addr [idx :] == ":80" {
192
+ return "localhost"
193
+ }
194
+ return "localhost" + addr [idx :]
195
+ }
189
196
}
190
197
191
198
// with ':' in order to not replace the ipv6 loopback addresses
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ require (
81
81
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
82
82
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
83
83
github.com/modern-go/reflect2 v1.0.2 // indirect
84
- github.com/nats-io/jwt/v2 v2.4.1 // indirect
84
+ github.com/nats-io/jwt/v2 v2.5.0 // indirect
85
85
github.com/nats-io/nats.go v1.28.0 // indirect
86
86
github.com/nats-io/nkeys v0.4.4 // indirect
87
87
github.com/nats-io/nuid v1.0.1 // indirect
You can’t perform that action at this time.
0 commit comments