mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
config: Specify gRPC proxy port with --restport command line arg
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
e60a370d46
commit
dc0ab06d91
5
lnd.go
5
lnd.go
@@ -201,8 +201,9 @@ func lndMain() error {
|
||||
return err
|
||||
}
|
||||
go func() {
|
||||
rpcsLog.Infof("gRPC proxy started")
|
||||
http.ListenAndServe(":8080", mux)
|
||||
restEndpoint := fmt.Sprintf(":%d", loadedConfig.RESTPort)
|
||||
rpcsLog.Infof("gRPC proxy started at localhost%s", restEndpoint)
|
||||
http.ListenAndServe(restEndpoint, mux)
|
||||
}()
|
||||
|
||||
// If we're not in simnet mode, We'll wait until we're fully synced to
|
||||
|
Reference in New Issue
Block a user