start

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
start [2025/04/22 06:08] ともやんstart [2025/04/22 22:35] (現在) ともやん
行 104: 行 104:
         async get_ip4addr() {         async get_ip4addr() {
           // https://www.ipify.org/           // https://www.ipify.org/
-          return (await (await fetch('ipifyv4?format=json', {mode: 'no-cors'}).catch(err=>{return '{ip:}'})).json()).ip;+          let ip4addr; 
 +          try { 
 +            ip4addr = (await (await fetch('https://razor-ramon4.tomoyan.net/remote_addr?format=json', {mode: 'cors'})).json()).ip
 +          } 
 +          catch (error) { 
 +            console.error(error); 
 +            ip4addr = error; 
 +          } 
 +          return ip4addr;
         },         },
       },       },
  • start.1745269684.txt.gz
  • 最終更新: 2025/04/22 06:08
  • by ともやん