diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-28 02:40:52 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-28 02:40:52 +0800 |
commit | a38bca3438960ab1eec6a522eebc6622a1096881 (patch) | |
tree | 793c4d09e17925e99b7ede085f846220bc2867d4 /cmd/mist | |
parent | 5f50fe7a4a6218bedf78333d751b57166932464a (diff) | |
download | go-tangerine-a38bca3438960ab1eec6a522eebc6622a1096881.tar go-tangerine-a38bca3438960ab1eec6a522eebc6622a1096881.tar.gz go-tangerine-a38bca3438960ab1eec6a522eebc6622a1096881.tar.bz2 go-tangerine-a38bca3438960ab1eec6a522eebc6622a1096881.tar.lz go-tangerine-a38bca3438960ab1eec6a522eebc6622a1096881.tar.xz go-tangerine-a38bca3438960ab1eec6a522eebc6622a1096881.tar.zst go-tangerine-a38bca3438960ab1eec6a522eebc6622a1096881.zip |
Add wsport flag to Mist
Diffstat (limited to 'cmd/mist')
-rw-r--r-- | cmd/mist/flags.go | 2 | ||||
-rw-r--r-- | cmd/mist/main.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cmd/mist/flags.go b/cmd/mist/flags.go index 8a67cdd0a..f530394c2 100644 --- a/cmd/mist/flags.go +++ b/cmd/mist/flags.go @@ -43,6 +43,7 @@ var ( StartRpc bool StartWebSockets bool RpcPort int + WsPort int UseUPnP bool NatType string OutboundPort string @@ -111,6 +112,7 @@ func Init() { flag.BoolVar(&UseUPnP, "upnp", true, "enable UPnP support") flag.IntVar(&MaxPeer, "maxpeer", 30, "maximum desired peers") flag.IntVar(&RpcPort, "rpcport", 8080, "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") flag.BoolVar(&StartWebSockets, "ws", false, "start websocket server") flag.BoolVar(&NonInteractive, "y", false, "non-interactive mode (say yes to confirmations)") diff --git a/cmd/mist/main.go b/cmd/mist/main.go index eb0a80add..bcfb7f2ec 100644 --- a/cmd/mist/main.go +++ b/cmd/mist/main.go @@ -73,7 +73,7 @@ func run() error { } if StartWebSockets { - utils.StartWebSockets(ethereum) + utils.StartWebSockets(ethereum, WsPort) } gui := NewWindow(ethereum, config, ethereum.ClientIdentity().(*p2p.SimpleClientIdentity), KeyRing, LogLevel) |