wg0 permission issue

This commit is contained in:
=bhagwanSingh 2025-12-15 13:44:59 +05:30
parent 03814c6c99
commit cbfa03e57c
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ AllowedIPs = 10.0.0.${ipLast}/32
fs.appendFileSync(WG_CONF, peerEntry); fs.appendFileSync(WG_CONF, peerEntry);
// apply config instantly // apply config instantly
execSync(`wg syncconf wg0 <(wg-quick strip wg0)`, { shell: "/bin/bash" }); // execSync(`wg syncconf wg0 <(wg-quick strip wg0)`, { shell: "/bin/bash" });
execSync(`wg-quick strip wg0 > /tmp/wg0.tmp`);
execSync(`wg syncconf wg0 /tmp/wg0.tmp`);
} }
function generateClientConf(privateKey, ip) { function generateClientConf(privateKey, ip) {