File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { defineTool } from '../tool';
4
4
export const tool = defineTool ( {
5
5
name : 'My IP Address' ,
6
6
path : '/my-ip' ,
7
- description : 'Get your client IP Address (IPv4/6) using https://getjsonip.com /' ,
7
+ description : 'Get your client IP Address (IPv4/6) using https://www.ipify.org /' ,
8
8
keywords : [ 'my' , 'client' , 'ip' ] ,
9
9
component : ( ) => import ( './my-ip.vue' ) ,
10
10
icon : World ,
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ import { useCopy } from '@/composable/copy';
4
4
5
5
const [clientIP, refreshClientIP] = computedRefreshableAsync (async () => {
6
6
try {
7
- return (await (await fetch (' https://jsonip.com' , { mode: ' cors' })).json ()).ip ?.toString ();
7
+ return (await (await fetch (' https://api64.ipify.org?format=json' , {
8
+ mode: ' cors' ,
9
+ })).json ()).ip ?.toString ();
8
10
}
9
11
catch (e : any ) {
10
12
return e .toString ();
You can’t perform that action at this time.
0 commit comments