diff --git a/cmd/loop/loopin.go b/cmd/loop/loopin.go index d6d59bf..467028a 100644 --- a/cmd/loop/loopin.go +++ b/cmd/loop/loopin.go @@ -150,6 +150,7 @@ func loopIn(ctx *cli.Context) error { ExternalHtlc: external, HtlcConfTarget: htlcConfTarget, Label: label, + Initiator: defaultInitiator, } if ctx.IsSet(lastHopFlag.Name) { diff --git a/cmd/loop/loopout.go b/cmd/loop/loopout.go index 2c8c380..dc2b939 100644 --- a/cmd/loop/loopout.go +++ b/cmd/loop/loopout.go @@ -195,6 +195,7 @@ func loopOut(ctx *cli.Context) error { HtlcConfirmations: htlcConfs, SwapPublicationDeadline: uint64(swapDeadline.Unix()), Label: label, + Initiator: defaultInitiator, }) if err != nil { return err diff --git a/cmd/loop/main.go b/cmd/loop/main.go index 0dcd620..d1cdd7c 100644 --- a/cmd/loop/main.go +++ b/cmd/loop/main.go @@ -48,6 +48,10 @@ var ( // that we set when sending it over the line. defaultMacaroonTimeout int64 = 60 + // defaultInitiator is the default value for the "initiator" part of the + // user agent string we send when using the command line utility. + defaultInitiator = "loop-cli" + loopDirFlag = cli.StringFlag{ Name: "loopdir", Value: loopd.LoopDirBase,