separate grpc connection

This commit is contained in:
Peter Rounce 2022-09-14 15:31:51 +00:00
parent e16fca179b
commit 524367ec3c
2 changed files with 8 additions and 3 deletions

View file

@ -35,6 +35,7 @@ func lnurlp_response(w http.ResponseWriter, r *http.Request) {
},).Info("lnurlp_response")
// look up domain in env vars (HOST_DOMAIN)
env_host_domain := os.Getenv("HOST_DOMAIN")
if r.Host != env_host_domain {
log.Warn("wrong host domain")