diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-01 04:07:46 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-01 04:07:46 +0800 |
commit | cdb77f0ecd239fe7a5494891c6a42645904a432b (patch) | |
tree | 27b9a42b43b0bbb7c54a78885cb48d8a40abb3d3 /cmd/ethereum/flags.go | |
parent | 43b5777709d9b867d1e2331d5586b914207f354f (diff) | |
parent | ea0517b5396efc7bd47f820ec0263f68f76f29a4 (diff) | |
download | dexon-cdb77f0ecd239fe7a5494891c6a42645904a432b.tar dexon-cdb77f0ecd239fe7a5494891c6a42645904a432b.tar.gz dexon-cdb77f0ecd239fe7a5494891c6a42645904a432b.tar.bz2 dexon-cdb77f0ecd239fe7a5494891c6a42645904a432b.tar.lz dexon-cdb77f0ecd239fe7a5494891c6a42645904a432b.tar.xz dexon-cdb77f0ecd239fe7a5494891c6a42645904a432b.tar.zst dexon-cdb77f0ecd239fe7a5494891c6a42645904a432b.zip |
Merge pull request #402 from tgerring/rpcupdates
Set RPC listening address via param
Diffstat (limited to 'cmd/ethereum/flags.go')
-rw-r--r-- | cmd/ethereum/flags.go | 70 |
1 files changed, 36 insertions, 34 deletions
diff --git a/cmd/ethereum/flags.go b/cmd/ethereum/flags.go index c42083160..1a0c13c82 100644 --- a/cmd/ethereum/flags.go +++ b/cmd/ethereum/flags.go @@ -36,40 +36,41 @@ import ( ) var ( - Identifier string - KeyRing string - DiffTool bool - DiffType string - KeyStore string - StartRpc bool - StartWebSockets bool - RpcPort int - WsPort int - OutboundPort string - ShowGenesis bool - AddPeer string - MaxPeer int - GenAddr bool - BootNodes string - NodeKey *ecdsa.PrivateKey - NAT nat.Interface - SecretFile string - ExportDir string - NonInteractive bool - Datadir string - LogFile string - ConfigFile string - DebugFile string - LogLevel int - LogFormat string - Dump bool - DumpHash string - DumpNumber int - VmType int - ImportChain string - SHH bool - Dial bool - PrintVersion bool + Identifier string + KeyRing string + DiffTool bool + DiffType string + KeyStore string + StartRpc bool + StartWebSockets bool + RpcListenAddress string + RpcPort int + WsPort int + OutboundPort string + ShowGenesis bool + AddPeer string + MaxPeer int + GenAddr bool + BootNodes string + NodeKey *ecdsa.PrivateKey + NAT nat.Interface + SecretFile string + ExportDir string + NonInteractive bool + Datadir string + LogFile string + ConfigFile string + DebugFile string + LogLevel int + LogFormat string + Dump bool + DumpHash string + DumpNumber int + VmType int + ImportChain string + SHH bool + Dial bool + PrintVersion bool ) // flags specific to cli client @@ -93,6 +94,7 @@ func Init() { flag.StringVar(&KeyRing, "keyring", "", "identifier for keyring to use") flag.StringVar(&KeyStore, "keystore", "db", "system to store keyrings: db|file (db)") + flag.StringVar(&RpcListenAddress, "rpcaddr", "127.0.0.1", "address for json-rpc server to listen on") flag.IntVar(&RpcPort, "rpcport", 8545, "port to start json-rpc server on") flag.IntVar(&WsPort, "wsport", 40404, "port to start websocket rpc server on") flag.BoolVar(&StartRpc, "rpc", false, "start rpc server") |