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;