Skip to content

Commit

Permalink
listen on port
Browse files Browse the repository at this point in the history
  • Loading branch information
nialexsan committed Feb 10, 2024
1 parent 8fa33ed commit 429c349
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestServerJSONRPCOveHTTPHandler(t *testing.T) {
blockchainAPI := api.NewBlockChainAPI(config, store, mockFlowClient)
supportedAPIs := api.SupportedAPIs(blockchainAPI)
srv.EnableRPC(supportedAPIs)
srv.SetListenAddr("localhost", 8545)
srv.SetListenAddr("", 8545)
err := srv.Start()
defer srv.Stop()
if err != nil {
Expand Down Expand Up @@ -460,7 +460,7 @@ func TestServerJSONRPCOveWebSocketHandler(t *testing.T) {
blockchainAPI := api.NewBlockChainAPI(config, store, flowClient)
supportedAPIs := api.SupportedAPIs(blockchainAPI)
srv.EnableWS(supportedAPIs)
srv.SetListenAddr("localhost", 8545)
srv.SetListenAddr("", 8545)
err = srv.Start()
defer srv.Stop()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func runServer(config *api.Config, store *storage.Store, logger zerolog.Logger)
srv.EnableRPC(supportedAPIs)
srv.EnableWS(supportedAPIs)

srv.SetListenAddr("localhost", 8545)
srv.SetListenAddr("", 8545)

err = srv.Start()
if err != nil {
Expand Down

0 comments on commit 429c349

Please sign in to comment.