add LNURLp switch

This commit is contained in:
Peter Rounce 2022-09-19 06:40:24 +00:00
parent 4a38533cec
commit 8d01474d5f
8 changed files with 40 additions and 40 deletions

View file

@ -8,6 +8,11 @@ import (
)
func lnurlp_response(w http.ResponseWriter, r *http.Request) {
if os.Getenv("FUNCTION_LNURLP") != "ENABLE" {
log.Debug("LNURLp function is not enabled")
return
}
name := mux.Vars(r)["name"]
log.WithFields(