diff --git a/resources/json/config.json b/resources/json/config.json index b5d0e2f..fa7d40a 100644 --- a/resources/json/config.json +++ b/resources/json/config.json @@ -1,4 +1,5 @@ { "trust": [], - "blacklist": [] + "blacklist": [], + "domain": "url.viois.gay" } \ No newline at end of file diff --git a/shortener.js b/shortener.js index bbb0203..b7288b9 100644 --- a/shortener.js +++ b/shortener.js @@ -62,7 +62,7 @@ app.get("/makeURL", (req, res) => { "url": url }) - writep(`Done! Find your URL at: ${req.hostname + "/url/" + shortURL.shortCode}`) + writep(`Done! Find your URL at: ${fileHandler.config.domain + "/url/" + shortURL.shortCode}`) finishHtml() })