Browse Source

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).
pull/46/head
Fastidious 4 years ago
committed by GitHub
parent
commit
ef7570777d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/lib/Server.js

5
src/lib/Server.js

@ -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…
Cancel
Save