File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ const (
82
82
// invoiceMacaroonName is the name of the invoice macaroon belonging
83
83
// to the target lnd node.
84
84
invoiceMacaroonName = "invoice.macaroon"
85
+
86
+ // defaultMailboxAddress is the default address of the mailbox server
87
+ // that will be used if none is specified.
88
+ defaultMailboxAddress = "mailbox.terminal.lightning.today:443"
85
89
)
86
90
87
91
var (
@@ -591,6 +595,11 @@ func getConfig() (*Config, error) {
591
595
cfg .Authenticator .MacDir ,
592
596
)
593
597
598
+ // Set default mailbox address if none is set.
599
+ if cfg .Authenticator .MailboxAddress == "" {
600
+ cfg .Authenticator .MailboxAddress = defaultMailboxAddress
601
+ }
602
+
594
603
// Then check the configuration that we got from the config file, all
595
604
// required values need to be set at this point.
596
605
if err := cfg .validate (); err != nil {
You can’t perform that action at this time.
0 commit comments