forked from mirrors/amnezia-wg-easy
Merge pull request #192 from crazyracer98/feature/wg-pre-up-down
Add PreUp and PreDown
This commit is contained in:
commit
7a0f097e4e
4 changed files with 14 additions and 2 deletions
|
@ -19,7 +19,9 @@ const {
|
|||
WG_DEFAULT_ADDRESS,
|
||||
WG_PERSISTENT_KEEPALIVE,
|
||||
WG_ALLOWED_IPS,
|
||||
WG_PRE_UP,
|
||||
WG_POST_UP,
|
||||
WG_PRE_DOWN,
|
||||
WG_POST_DOWN,
|
||||
} = require('../config');
|
||||
|
||||
|
@ -94,7 +96,9 @@ module.exports = class WireGuard {
|
|||
PrivateKey = ${config.server.privateKey}
|
||||
Address = ${config.server.address}/24
|
||||
ListenPort = 51820
|
||||
PreUp = ${WG_PRE_UP}
|
||||
PostUp = ${WG_POST_UP}
|
||||
PreDown = ${WG_PRE_DOWN}
|
||||
PostDown = ${WG_POST_DOWN}
|
||||
`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue