Skip to content

Commit

Permalink
Add wsport flag to Mist
Browse files Browse the repository at this point in the history
  • Loading branch information
tgerring committed Jan 27, 2015
1 parent 5f50fe7 commit a38bca3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/mist/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var (
StartRpc bool
StartWebSockets bool
RpcPort int
WsPort int
UseUPnP bool
NatType string
OutboundPort string
Expand Down Expand Up @@ -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)")
Expand Down
2 changes: 1 addition & 1 deletion cmd/mist/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a38bca3

Please sign in to comment.