forked from mirrors/amnezia-wg-easy
Binding web address
Adding the ability to change the binding address for the web server (0.0.0.0, open to everyone, or 127.0.0.1, for example, for proxying).
This commit is contained in:
parent
5248dfec77
commit
ef7570777d
1 changed files with 3 additions and 2 deletions
|
@ -14,6 +14,7 @@ const {
|
|||
PORT,
|
||||
RELEASE,
|
||||
PASSWORD,
|
||||
WEBHOST,
|
||||
} = require('../config');
|
||||
|
||||
module.exports = class Server {
|
||||
|
@ -130,8 +131,8 @@ module.exports = class Server {
|
|||
return WireGuard.updateClientAddress({ clientId, address });
|
||||
}))
|
||||
|
||||
.listen(PORT, () => {
|
||||
debug(`Listening on http://0.0.0.0:${PORT}`);
|
||||
.listen(PORT,WEBHOST, () => {
|
||||
debug(`Listening on http://${WEBHOST}:${PORT}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue