rpc path to ipc path changed

pull/507/head
kompotkot 2021-12-21 15:59:31 +00:00
rodzic 416f5dd35e
commit 7d529afb4f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -45,7 +45,7 @@ func lbHandler(w http.ResponseWriter, r *http.Request) {
r.URL.Path = "/ping"
peer.StatusReverseProxy.ServeHTTP(w, r)
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 = "/"
peer.GethReverseProxy.ServeHTTP(w, r)
return