mirror of
https://github.com/wg-easy/wg-easy.git
synced 2025-10-20 22:30:45 +08:00
Ability to change ip address WebUI binds to with WEBUI_HOST env var
This commit is contained in:
@@ -12,6 +12,7 @@ const WireGuard = require('../services/WireGuard');
|
||||
|
||||
const {
|
||||
PORT,
|
||||
WEBUI_HOST,
|
||||
RELEASE,
|
||||
PASSWORD,
|
||||
} = require('../config');
|
||||
@@ -135,8 +136,8 @@ module.exports = class Server {
|
||||
return WireGuard.updateClientAddress({ clientId, address });
|
||||
}))
|
||||
|
||||
.listen(PORT, () => {
|
||||
debug(`Listening on http://0.0.0.0:${PORT}`);
|
||||
.listen(PORT, WEBUI_HOST, () => {
|
||||
debug(`Listening on http://${WEBUI_HOST}:${PORT}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user