mirror of
https://github.com/wg-easy/wg-easy.git
synced 2025-10-21 06:39:34 +08:00
add environment variable for changes lang
This commit is contained in:
@@ -14,6 +14,7 @@ const {
|
||||
PORT,
|
||||
RELEASE,
|
||||
PASSWORD,
|
||||
LANG,
|
||||
} = require('../config');
|
||||
|
||||
module.exports = class Server {
|
||||
@@ -134,6 +135,9 @@ module.exports = class Server {
|
||||
const { address } = req.body;
|
||||
return WireGuard.updateClientAddress({ clientId, address });
|
||||
}))
|
||||
.get('/api/lang', (Util.promisify(async () => {
|
||||
return LANG;
|
||||
})))
|
||||
|
||||
.listen(PORT, () => {
|
||||
debug(`Listening on http://0.0.0.0:${PORT}`);
|
||||
|
Reference in New Issue
Block a user