Skip to content

Commit

Permalink
connect if adr is empty as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Varunram committed Dec 3, 2018
1 parent f8a3e05 commit 6bf4bea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/lit-af/lit-af.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ func (lc *litAfClient) litAfSetup(conf litAfConfig) error {
if err != nil {
logging.Fatal(err.Error())
}
} else if len(adr) == 0 {
// so the user didn't provide us with an address to connect to
// we need to connect to the locally running lit-af instance
lc.RPCClient, err = litrpc.NewLocalLndcRpcClientWithHomeDirAndPort(defaultDir, port)
if err != nil {
logging.Fatal(err.Error())
}
}
return nil
}
Expand Down

0 comments on commit 6bf4bea

Please sign in to comment.