Browse Source

Fix hardcoded WG_PORT in js

Had already added `$WG_PORT` variable to readme, but negated to switch it to a variable within the .js
pull/654/head
Peter Lewis 3 years ago
committed by GitHub
parent
commit
5d72eef04d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/lib/WireGuard.js

2
src/lib/WireGuard.js

@ -95,7 +95,7 @@ module.exports = class WireGuard {
[Interface]
PrivateKey = ${config.server.privateKey}
Address = ${config.server.address}/24
ListenPort = 51820
ListenPort = ${WG_PORT}
PreUp = ${WG_PRE_UP}
PostUp = ${WG_POST_UP}
PreDown = ${WG_PRE_DOWN}

Loading…
Cancel
Save