From 6526bace852bc94ebd00f9e1af7b878338f3ef52 Mon Sep 17 00:00:00 2001 From: Dmitry Shulyak Date: Mon, 12 Feb 2018 16:17:10 +0200 Subject: [PATCH] Add cmd flag to specify http host of json rpc server (#651) --- cmd/statusd/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/statusd/main.go b/cmd/statusd/main.go index 4fda137c4..1e19d2d37 100644 --- a/cmd/statusd/main.go +++ b/cmd/statusd/main.go @@ -34,6 +34,7 @@ var ( swarmEnabled = flag.Bool("swarm", false, "Swarm protocol enabled") maxPeers = flag.Int("maxpeers", 25, "maximum number of p2p peers (including all protocols)") httpEnabled = flag.Bool("http", false, "HTTP RPC endpoint enabled (default: false)") + httpHost = flag.String("httphost", "127.0.0.1", "HTTP RPC host of the listening socket") httpPort = flag.Int("httpport", params.HTTPPort, "HTTP RPC server's listening port") ipcEnabled = flag.Bool("ipc", false, "IPC RPC endpoint enabled") cliEnabled = flag.Bool("cli", false, "Enable debugging CLI server") @@ -199,6 +200,7 @@ func makeNodeConfig() (*params.NodeConfig, error) { nodeConfig.WhisperConfig.Enabled = *whisperEnabled nodeConfig.MaxPeers = *maxPeers + nodeConfig.HTTPHost = *httpHost nodeConfig.HTTPPort = *httpPort nodeConfig.IPCEnabled = *ipcEnabled