From 05941cbda5c4134b3ecbe237688856630d660f67 Mon Sep 17 00:00:00 2001 From: Joel Heaps <13434824+joelheaps@users.noreply.github.com> Date: Fri, 28 Jan 2022 20:50:21 -0600 Subject: [PATCH] Update src/config.js Co-authored-by: crazyracer98 <8631139+crazyracer98@users.noreply.github.com> --- src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index 404e9d26..41131558 100644 --- a/src/config.js +++ b/src/config.js @@ -27,7 +27,7 @@ const modules = childProcess.execSync('lsmod', { }) module.exports.WG_POST_UP = process.env.WG_POST_UP -if (!!process.env.WG_POST_UP) { +if (!process.env.WG_POST_UP) { module.exports.WG_POST_UP = ` iptables -t nat -A POSTROUTING -s ${module.exports.WG_DEFAULT_ADDRESS.replace('x', '0')}/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT;