mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
terminal: overwrite pool AgentName to litd
To indicate to the server that an account/order was created by the LiT integrated Pool daemon, we overwrite the global AgentName variable.
This commit is contained in:
parent
7fe6fc7c52
commit
26bbb77e7c
1 changed files with 3 additions and 2 deletions
|
|
@ -99,9 +99,10 @@ func (g *LightningTerminal) Run() error {
|
|||
g.poolServer = pool.NewServer(g.cfg.Pool)
|
||||
g.rpcProxy = newRpcProxy(g.cfg, g, getAllPermissions())
|
||||
|
||||
// Overwrite the loop daemon's user agent name so it sends "litd"
|
||||
// instead of "loopd".
|
||||
// Overwrite the loop and pool daemon's user agent name so it sends
|
||||
// "litd" instead of "loopd" and "poold" respectively.
|
||||
loop.AgentName = "litd"
|
||||
pool.SetAgentName("litd")
|
||||
|
||||
// Hook interceptor for os signals.
|
||||
err = signal.Intercept()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue