mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-11-18 00:19:22 +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,
|
||||
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…
Reference in New Issue
Block a user