diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-28 08:00:42 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-28 08:00:42 +0800 |
commit | f6e821fd335911c26d515094ac0af4fa69526279 (patch) | |
tree | 99f80c562d2a1735d80baf887835a13c7696e919 /cmd/utils | |
parent | ad3a21f260a0b13048046f6c76fe5f47bdcc46de (diff) | |
download | go-tangerine-f6e821fd335911c26d515094ac0af4fa69526279.tar go-tangerine-f6e821fd335911c26d515094ac0af4fa69526279.tar.gz go-tangerine-f6e821fd335911c26d515094ac0af4fa69526279.tar.bz2 go-tangerine-f6e821fd335911c26d515094ac0af4fa69526279.tar.lz go-tangerine-f6e821fd335911c26d515094ac0af4fa69526279.tar.xz go-tangerine-f6e821fd335911c26d515094ac0af4fa69526279.tar.zst go-tangerine-f6e821fd335911c26d515094ac0af4fa69526279.zip |
Add flag to set RPC port
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/cmd.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index a36c10e3b..5c7ec3221 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -160,9 +160,9 @@ func KeyTasks(keyManager *crypto.KeyManager, KeyRing string, GenAddr bool, Secre clilogger.Infof("Main address %x\n", keyManager.Address()) } -func StartRpc(ethereum *eth.Ethereum, RpcPort int) { +func StartRpc(ethereum *eth.Ethereum, RpcListenAddress string, RpcPort int) { var err error - ethereum.RpcServer, err = rpchttp.NewRpcHttpServer(xeth.New(ethereum), RpcPort) + ethereum.RpcServer, err = rpchttp.NewRpcHttpServer(xeth.New(ethereum), RpcListenAddress, RpcPort) if err != nil { clilogger.Errorf("Could not start RPC interface (port %v): %v", RpcPort, err) } else { |