Skip to content

Commit 1392239

Browse files
committed
terminal: set loopd user agent
1 parent c01d968 commit 1392239

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

terminal.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/jessevdk/go-flags"
1919
"github.com/lightninglabs/faraday/frdrpc"
2020
"github.com/lightninglabs/lndclient"
21+
"github.com/lightninglabs/loop"
2122
"github.com/lightninglabs/loop/loopd"
2223
"github.com/lightninglabs/loop/looprpc"
2324
"github.com/lightningnetwork/lnd"
@@ -91,6 +92,10 @@ func (g *LightningTerminal) Run() error {
9192
g.loopServer = loopd.New(g.cfg.Loop, nil)
9293
g.rpcProxy = newRpcProxy(g.cfg, g, getAllPermissions())
9394

95+
// Overwrite the loop daemon's user agent name so it sends "litd"
96+
// instead of "loopd".
97+
loop.AgentName = "litd"
98+
9499
// Hook interceptor for os signals.
95100
err = signal.Intercept()
96101
if err != nil {

0 commit comments

Comments
 (0)