use database settings for lookups
This commit is contained in:
parent
085b402fef
commit
59151232dd
13 changed files with 87 additions and 42 deletions
|
|
@ -71,7 +71,7 @@ func main() {
|
|||
|
||||
// show a QR code on the console for the URI + one_time_code
|
||||
|
||||
hostdomain := os.Getenv("HOST_DOMAIN")
|
||||
hostdomain := db_get_setting("HOST_DOMAIN")
|
||||
url := ""
|
||||
if strings.HasSuffix(hostdomain, ".onion") {
|
||||
url = "http://" + hostdomain + "/new?a=" + one_time_code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue