kopia lustrzana https://github.com/bugout-dev/moonstream
ipc to jsonrpc path changed
rodzic
7d529afb4f
commit
852cff34b3
|
@ -45,7 +45,7 @@ func lbHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
r.URL.Path = "/ping"
|
r.URL.Path = "/ping"
|
||||||
peer.StatusReverseProxy.ServeHTTP(w, r)
|
peer.StatusReverseProxy.ServeHTTP(w, r)
|
||||||
return
|
return
|
||||||
case strings.HasPrefix(r.URL.Path, fmt.Sprintf("/nb/%s/ipc", blockchain)):
|
case strings.HasPrefix(r.URL.Path, fmt.Sprintf("/nb/%s/jsonrpc", blockchain)):
|
||||||
r.URL.Path = "/"
|
r.URL.Path = "/"
|
||||||
peer.GethReverseProxy.ServeHTTP(w, r)
|
peer.GethReverseProxy.ServeHTTP(w, r)
|
||||||
return
|
return
|
||||||
|
|
Ładowanie…
Reference in New Issue