Browse Source

WireGuard.js: start interface wg0 with wireguard-go only

pull/702/head
Philip H 3 years ago
committed by pheiduck
parent
commit
c32674be44
  1. 2
      src/lib/WireGuard.js

2
src/lib/WireGuard.js

@ -60,7 +60,7 @@ module.exports = class WireGuard {
await this.__saveConfig(config);
await Util.exec('wg-quick down wg0').catch(() => { });
await Util.exec('wg-quick up wg0 || wireguard-go wg0').catch((err) => {
await Util.exec('wireguard-go wg0').catch((err) => {
if (err && err.message && err.message.includes('Cannot find device "wg0"')) {
throw new Error('WireGuard exited with the error: Cannot find device "wg0"\nThis usually means that your host\'s kernel does not support WireGuard!');
}

Loading…
Cancel
Save