Browse Source

[lite] fixed listen address (#1384)

pull/1387/head
Vladislav Dmitriyev 7 years ago
committed by Anton Kaliaev
parent
commit
2fa7af4614
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cmd/tendermint/commands/lite.go

+ 2
- 2
cmd/tendermint/commands/lite.go View File

@ -34,14 +34,14 @@ var (
)
func init() {
LiteCmd.Flags().StringVar(&listenAddr, "laddr", ":8888", "Serve the proxy on the given port")
LiteCmd.Flags().StringVar(&listenAddr, "laddr", "tcp://localhost:8888", "Serve the proxy on the given address")
LiteCmd.Flags().StringVar(&nodeAddr, "node", "tcp://localhost:46657", "Connect to a Tendermint node at this address")
LiteCmd.Flags().StringVar(&chainID, "chain-id", "tendermint", "Specify the Tendermint chain ID")
LiteCmd.Flags().StringVar(&home, "home-dir", ".tendermint-lite", "Specify the home directory")
}
func ensureAddrHasSchemeOrDefaultToTCP(addr string) (string, error) {
u, err := url.Parse(nodeAddr)
u, err := url.Parse(addr)
if err != nil {
return "", err
}


Loading…
Cancel
Save