mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 07:26:47 +00:00
* listenAddress updated to correctly set if RPC listens on any interface * Update restful_router.go
This commit is contained in:
@@ -72,7 +72,7 @@ func TestValidHostRequest(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
req.Host = bot.config.Webserver.ListenAddress
|
||||
req.Host = "localhost:9050"
|
||||
|
||||
resp := httptest.NewRecorder()
|
||||
NewRouter().ServeHTTP(resp, req)
|
||||
|
||||
Reference in New Issue
Block a user