Browse Source

Revert "fixup: Determine interface of default network rather than assume eth0"

pull/686/head
Philip H 1 year ago
committed by GitHub
parent
commit
94b9eaf3cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/config.js

3
src/config.js

@ -1,6 +1,5 @@
'use strict';
const { execSync } = require('child_process');
const { release } = require('./package.json');
module.exports.RELEASE = release;
@ -8,7 +7,7 @@ module.exports.PORT = process.env.PORT || 51821;
module.exports.WEBUI_HOST = process.env.WEBUI_HOST || '0.0.0.0';
module.exports.PASSWORD = process.env.PASSWORD;
module.exports.WG_PATH = process.env.WG_PATH || '/etc/wireguard/';
module.exports.WG_DEVICE = process.env.WG_DEVICE || execSync("ip r | grep default | cut -d ' ' -f 5 | head -n1");
module.exports.WG_DEVICE = process.env.WG_DEVICE || 'eth0';
module.exports.WG_HOST = process.env.WG_HOST;
module.exports.WG_PORT = process.env.WG_PORT || 51820;
module.exports.WG_MTU = process.env.WG_MTU || null;

Loading…
Cancel
Save