|
|
@ -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 |
|
|
|
} |
|
|
|