RPC Server Host valdiation fix for #296 (#302)

* listenAddress updated to correctly set if RPC listens on any interface

* Update restful_router.go
This commit is contained in:
Andrew
2019-05-17 11:45:22 +10:00
committed by Adrian Gallagher
parent 46267e5975
commit 05a7ae70ba
2 changed files with 4 additions and 3 deletions

View File

@@ -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)