mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-12-22 17:19:23 +08:00
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
@ -14,6 +14,7 @@ const {
|
|||||||
PORT,
|
PORT,
|
||||||
RELEASE,
|
RELEASE,
|
||||||
PASSWORD,
|
PASSWORD,
|
||||||
|
WEBHOST,
|
||||||
} = require('../config');
|
} = require('../config');
|
||||||
|
|
||||||
module.exports = class Server {
|
module.exports = class Server {
|
||||||
@ -130,8 +131,8 @@ module.exports = class Server {
|
|||||||
return WireGuard.updateClientAddress({ clientId, address });
|
return WireGuard.updateClientAddress({ clientId, address });
|
||||||
}))
|
}))
|
||||||
|
|
||||||
.listen(PORT, () => {
|
.listen(PORT,WEBHOST, () => {
|
||||||
debug(`Listening on http://0.0.0.0:${PORT}`);
|
debug(`Listening on http://${WEBHOST}:${PORT}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user