sysinfo: add interface to get IPv6 address
This commit is contained in:
@@ -294,7 +294,7 @@ async function syncExternalLdap(req, res, next) {
|
||||
}
|
||||
|
||||
async function getServerIp(req, res, next) {
|
||||
const [error, ip] = await safe(sysinfo.getServerIp());
|
||||
const [error, ip] = await safe(sysinfo.getServerIPv4());
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(200, { ip }));
|
||||
|
||||
Reference in New Issue
Block a user