Browse Source
Fix execution command with command redirect
pull/394/head
BrainStone
4 years ago
No known key found for this signature in database
GPG Key ID: 66CCC234C2CEB306
1 changed files with
3 additions and
1 deletions
-
src/lib/WireGuard.js
|
|
|
@ -127,7 +127,9 @@ AllowedIPs = ${client.address}/32`; |
|
|
|
|
|
|
|
async __syncConfig() { |
|
|
|
debug('Config syncing...'); |
|
|
|
await Util.exec(`${SUDO_STRING}wg syncconf wg0 <(${SUDO_STRING}wg-quick strip wg0)`); |
|
|
|
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)`, |
|
|
|
}); |
|
|
|
debug('Config synced.'); |
|
|
|
} |
|
|
|
|
|
|
|
|