Commit fa641a5
committed
fix(ip-query): update IP API endpoint and response handling
- Changed the IP API endpoint from 'http://ip-api.com/json/' to 'https://freeipapi.com/api/json/' for improved reliability.
- Updated the response structure to match the new API, including changes to field names and added handling for ASN organization.
- Removed unnecessary timeout parameter from the getIp function to streamline the code.
These changes enhance the functionality and reliability of the IP query feature.
Signed-off-by: Innei <tukon479@gmail.com>1 parent 8253442 commit fa641a5
File tree
2 files changed
+2
-2
lines changed- apps/core/src
- modules/serverless/pack/built-in
- utils/sandbox
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments