Browse Source

Make the output redirect work

pull/394/head
BrainStone 4 years ago
parent
commit
6c6df34c69
No known key found for this signature in database GPG Key ID: 66CCC234C2CEB306
  1. 4
      src/lib/WireGuard.js

4
src/lib/WireGuard.js

@ -127,9 +127,7 @@ AllowedIPs = ${client.address}/32`;
async __syncConfig() {
debug('Config syncing...');
await Util.exec(`${SUDO_STRING} bash -c "wg syncconf wg0 <(wg-quick strip wg0)"`, {
log: `${SUDO_STRING}wg syncconf wg0 <(${SUDO_STRING}wg-quick strip wg0)`,
});
await Util.exec(`${SUDO_STRING}wg-quick strip wg0 | ${SUDO_STRING}wg syncconf wg0 /dev/fd/0`);
debug('Config synced.');
}

Loading…
Cancel
Save