From 386e5fad78785d0973ccdb369073fa9d2615c005 Mon Sep 17 00:00:00 2001 From: josiah Date: Sun, 13 Jun 2021 21:52:25 -0500 Subject: [PATCH] added my instance to README and fixed expresss not binding to config.listen_address --- README.md | 1 + app.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 88d5af0..731a50b 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Community instances: * [https://teddit.nautolan.racing](https://teddit.nautolan.racing) * [https://teddit.tinfoil-hat.net](https://teddit.tinfoil-hat.net) * [https://teddit.domain.glass](https://teddit.domain.glass) +* [https://snoo.ioens.is](https://snoo.ioens.is) * [ibarajztopxnuhabfu7f...onion](http://ibarajztopxnuhabfu7fg6gbudynxofbnmvis3ltj6lfx47b6fhrd5qd.onion) (not working since 06/2021) * [xugoqcf2pftm76vbznx4...i2p](http://xugoqcf2pftm76vbznx4xuhrzyb5b6zwpizpnw2hysexjdn5l2tq.b32.i2p) diff --git a/app.js b/app.js index e718983..07b81d9 100644 --- a/app.js +++ b/app.js @@ -140,6 +140,6 @@ redis.on('error', (error) => { }) if(config.https_enabled) { - https.listen(config.ssl_port, '::', () => console.log(`Teddit running on https://${config.domain}:${config.ssl_port}`)) + https.listen(config.ssl_port, config.listen_address, () => console.log(`Teddit running on https://${config.domain}:${config.ssl_port}`)) } -http.listen(config.nonssl_port, '::', () => console.log(`Teddit running on http://${config.domain}:${config.nonssl_port}`)) +http.listen(config.nonssl_port, config.listen_address, () => console.log(`Teddit running on http://${config.domain}:${config.nonssl_port}`))