BrainStone
4 years ago
No known key found for this signature in database
GPG Key ID: 66CCC234C2CEB306
1 changed files with
1 additions and
3 deletions
-
src/lib/WireGuard.js
|
|
@ -127,9 +127,7 @@ AllowedIPs = ${client.address}/32`; |
|
|
|
|
|
|
|
|
async __syncConfig() { |
|
|
async __syncConfig() { |
|
|
debug('Config syncing...'); |
|
|
debug('Config syncing...'); |
|
|
await Util.exec(`${SUDO_STRING} bash -c "wg syncconf wg0 <(wg-quick strip wg0)"`, { |
|
|
await Util.exec(`${SUDO_STRING}wg-quick strip wg0 | ${SUDO_STRING}wg syncconf wg0 /dev/fd/0`); |
|
|
log: `${SUDO_STRING}wg syncconf wg0 <(${SUDO_STRING}wg-quick strip wg0)`, |
|
|
|
|
|
}); |
|
|
|
|
|
debug('Config synced.'); |
|
|
debug('Config synced.'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|