start adding handling for lnurlp
This commit is contained in:
parent
79c6369c39
commit
e16fca179b
6 changed files with 107 additions and 8 deletions
|
|
@ -9,6 +9,13 @@ import (
|
|||
|
||||
func lnurlw_callback(w http.ResponseWriter, req *http.Request) {
|
||||
|
||||
env_host_domain := os.Getenv("HOST_DOMAIN")
|
||||
if req.Host != env_host_domain {
|
||||
log.Warn("wrong host domain")
|
||||
write_error(w)
|
||||
return
|
||||
}
|
||||
|
||||
url := req.URL.RequestURI()
|
||||
log.WithFields(log.Fields{"url": url}).Debug("cb request")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue