diff --git a/index.js b/index.js index 36af2db..0740e20 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ app.use((req, res, next) => { next(); }); -// 提供接口,查询ubuntu server上的ipv6地址,处理字符串后,序列化为json返回 +// 提供接口,查询ubuntu server上的ipv6地址,处理字符串后,序列化为json返回. app.get('/ip', async (req, res) => { let output = execSync(command, { encoding: "utf8" }); res.json(await ip.parseNetworkInfo(output))