找回密码
 立即注册
CeraNetworksBGVM服务器主机交流IP归属甄别会员请立即修改密码
查看: 99|回复: 10

获取自己当前的 IP 地址,提供 fork 部署 Github Page

[复制链接]

7

主题

43

回帖

193

积分

注册会员

积分
193
发表于 2024-4-9 15:04:19 | 显示全部楼层 |阅读模式
本帖最后由 勿埋我心 于 2024-4-9 17:05 编辑

介绍

实时获取当前 IP 地址,支持多线路,包括中国移动、中国联通、中国电信、海外线路,以及访问谷歌等特殊网站。

Github:https://github.com/WuSuoV/YioveGetIP

演示站

https://ip.yiove.com/

效果图









回复

使用道具 举报

44

主题

738

回帖

2066

积分

金牌会员

积分
2066
发表于 2024-4-9 15:30:37 | 显示全部楼层
本想给你github点点star的
一看,尼玛,把build后的代码当做源码上传,你也是真的6。
回复

使用道具 举报

2

主题

1497

回帖

3270

积分

论坛元老

积分
3270
发表于 2024-4-9 15:25:06 | 显示全部楼层
js都混淆了还叫开源?
[ol]
  • var lh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var x1=lh((ct,ut)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/**
  • * @vue/shared v3.4.21
  • * (c) 2018-present Yuxi (Evan) You and Vue contributors
  • * @license MIT
  • **/function Ds(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Ie={},Gn=[],gt=()=>{},ah=()=>!1,ni=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)e.startsWith("onUpdate:"),De=Object.assign,Ws=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ch=Object.prototype.hasOwnProperty,_e=(e,t)=>ch.call(e,t),de=Array.isArray,qn=e=>ri(e)==="[object Map]",Qc=e=>ri(e)==="[object Set]",ve=e=>typeof e=="function",ke=e=>typeof e=="string",sr=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",eu=e=>(ze(e)||ve(e))&&ve(e.then)&&ve(e.catch),tu=Object.prototype.toString,ri=e=>tu.call(e),uh=e=>ri(e).slice(8,-1),nu=e=>ri(e)==="[object Object]",Us=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Er=Ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dh=/-(\w)/g,Qn=oi(e=>e.replace(dh,(t,n)=>n?n.toUpperCase():"")),fh=/\B([A-Z])/g,lr=oi(e=>e.replace(fh,"-$1").toLowerCase()),ru=oi(e=>e.charAt(0).toUpperCase()+e.slice(1)),zi=oi(e=>e?`on${ru(e)}`:""),vn=(e,t)=>!Object.is(e,t),Pi=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},hh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ph=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Kl;const ou=()=>Kl||(Kl=typeof globalThis{if(n){const r=n.split(mh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Vs(e){let t="";if(ke(e))t=e;else if(de(e))for(let n=0;nke(e)?e:e==null?"":de(e)||ze(e)&&(e.toString===tu||!ve(e.toString))?JSON.stringify(e,su,2):String(e),su=(e,t)=>t&&t.__v_isRef?su(e,t.value):qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[Oi(r,i)+" =>"]=o,n),{})}:Qc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Oi(n))}:sr(t)?Oi(t):ze(t)&&!de(t)&&!nu(t)?String(t):t,Oi=(e,t="")=>{var n;return sr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
  • * @vue/reactivity v3.4.21  
  • [/ol]复制代码
  • 回复

    使用道具 举报

    56

    主题

    875

    回帖

    2568

    积分

    金牌会员

    积分
    2568
    发表于 2024-4-9 15:05:14 | 显示全部楼层
    https://ip.skk.moe/
    ???不是很久以前就有了吗
    回复

    使用道具 举报

    10

    主题

    115

    回帖

    668

    积分

    高级会员

    积分
    668
    发表于 2024-4-9 16:13:56 | 显示全部楼层
    开源开源, 你这开了个寂寞
    回复

    使用道具 举报

    11

    主题

    199

    回帖

    651

    积分

    高级会员

    积分
    651
    发表于 2024-4-9 15:24:00 | 显示全部楼层
    http://ip111.cn/
    不是很久就有了吗?主要是你这并不简洁啊。
    没必要移动,联通,电信都要获取一次。兄弟,你这不是ping域名,有几户人家是WAN口聚合,家里拉了电信,联通,移动的?而且你干嘛不把所有的ipv4,ipv6显示出来,还要手动点一次,这操作真的特迷。
    回复

    使用道具 举报

    37

    主题

    141

    回帖

    917

    积分

    高级会员

    积分
    917
    发表于 2024-4-9 15:14:46 | 显示全部楼层
    你研究一下sh脚本 cf apikey ddns 极简实现方式
    回复

    使用道具 举报

    25

    主题

    7300

    回帖

    1万

    积分

    论坛元老

    积分
    15883
    发表于 2024-4-9 15:33:18 | 显示全部楼层
    你管这叫开源?什么github笑话,耻辱柱可以再加一颗钉子了
    回复

    使用道具 举报

    48

    主题

    303

    回帖

    1182

    积分

    金牌会员

    积分
    1182
    发表于 2024-4-9 15:47:50 | 显示全部楼层

    lisa1937 发表于 2024-4-9 15:14

    你研究一下sh脚本 cf apikey ddns 极简实现方式

    https://github.com/52fancy/cloudflare-ddns
    这个吗
    回复

    使用道具 举报

    173

    主题

    1673

    回帖

    5159

    积分

    论坛元老

    积分
    5159
    发表于 2024-4-9 15:14:00 | 显示全部楼层
    你我理解的开源不是一个开源
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|HS2V主机综合交流论坛

    GMT+8, 2024-6-11 09:16 , Processed in 0.059781 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表