fix: only enable request when lnd addr is set
This commit is contained in:
parent
6460002bb0
commit
277c713e7e
1 changed files with 6 additions and 2 deletions
8
main.go
8
main.go
|
@ -32,8 +32,12 @@ func main() {
|
|||
// nostr endpoints
|
||||
l.Debug().Msg("enabling nostr user endpoint")
|
||||
http.HandleFunc("/.well-known/nostr.json", nostr.GetNostrAddr)
|
||||
l.Debug().Msg("enabling nostr request endpoint")
|
||||
http.HandleFunc("/request/nostr", nostr.RequestNostrAddr)
|
||||
|
||||
addr := config.GetConfig().LndAddr
|
||||
if addr != "" {
|
||||
l.Debug().Msg("enabling nostr request endpoint")
|
||||
http.HandleFunc("/request/nostr", nostr.RequestNostrAddr)
|
||||
}
|
||||
|
||||
// start server
|
||||
port := config.GetConfig().ListenAddr
|
||||
|
|
Loading…
Reference in a new issue