This commit is contained in:
2
index.js
2
index.js
@@ -16,7 +16,7 @@ app.use((req, res, next) => {
|
||||
|
||||
/**
|
||||
* 提供接口,查询ubuntu server上的ipv6地址,处理字符串后,序列化为json返回.
|
||||
* 案例: https://ip.bmycode.help/ip?interface=enp3s0
|
||||
* 案例: https://ip.bbtlwlkj.top/ip?interface=enp3s0
|
||||
* 参数: [可选] interface 网卡名称
|
||||
*/
|
||||
app.get('/ip', async (req, res) => {
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
},
|
||||
methods: {
|
||||
async getIp() {
|
||||
let { data } = await axios.get('https://ip.bmycode.help/ip');
|
||||
let { data } = await axios.get('/ip');
|
||||
return data
|
||||
},
|
||||
async copyToClipboard(text) {
|
||||
|
||||
Reference in New Issue
Block a user