kopia lustrzana https://github.com/bugout-dev/moonstream
rpc path to ipc path changed
rodzic
416f5dd35e
commit
7d529afb4f
|
@ -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/rpc", blockchain)):
|
case strings.HasPrefix(r.URL.Path, fmt.Sprintf("/nb/%s/ipc", blockchain)):
|
||||||
r.URL.Path = "/"
|
r.URL.Path = "/"
|
||||||
peer.GethReverseProxy.ServeHTTP(w, r)
|
peer.GethReverseProxy.ServeHTTP(w, r)
|
||||||
return
|
return
|
||||||
|
|
Ładowanie…
Reference in New Issue