发帖
充值
 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
8 0

懒人精灵获取外网ip

源码分享 11268 8 2022-4-8 12:22:51
local res, code = httpGet("https://www.882667.com/");--如果此网址无反应,请尝试替换其他网址
if code == 200 then
        local i,j = string.find(res, "%d+%.%d+%.%d+%.%d+")
        local ipaddr =string.sub(res,i,j)
        print(ipaddr)
        ip=ipaddr
end

使用道具 举报

2022-4-12 00:03:34
感谢分享
2022-4-13 09:40:56
6666666666666666
2022-4-16 00:40:03
路过飘过不放过
2022-5-23 06:19:52
感谢楼主分享
2022-5-27 14:24:54
不错不错

只好不得已灌水
2022-7-11 15:12:15
2024-8-25 15:13:42
不用这么麻烦吧
exec('ifconfig')
您需要登录后才可以回帖 立即登录
高级模式
返回
源码分享