Use host domain from settings as docker requests come in on non-resolvable hosts
This commit is contained in:
parent
d79d6eb0ba
commit
daf7d5e5e4
1 changed files with 2 additions and 2 deletions
|
|
@ -3,10 +3,10 @@ package main
|
|||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"github.com/boltcard/boltcard/db"
|
||||
"github.com/boltcard/boltcard/resp_err"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
/**
|
||||
|
|
@ -55,7 +55,7 @@ func new_card_request(w http.ResponseWriter, req *http.Request) {
|
|||
|
||||
a := params_a[0]
|
||||
|
||||
lnurlw_base := "lnurlw://" + req.Host + "/ln"
|
||||
lnurlw_base := "lnurlw://" + db.Get_setting("HOST_DOMAIN") + "/ln"
|
||||
|
||||
c, err := db.Get_new_card(a)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue