MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / isValidIPv4

Function isValidIPv4

dig/dig.ts:68–72  ·  view source on GitHub ↗
(ip: string)

Source from the content-addressed store, hash-verified

66 const response = await axios.get(`https://api.ip.sb/geoip/${ip}`, {
67 timeout: 3000,
68 headers: {
69 "User-Agent": "TeleBox-DNS-Plugin/1.0",
70 },
71 });
72
73 if (response.status === 200 && response.data) {
74 const data = response.data;
75 const country = data.country || "";

Callers 2

formatShortDnsResultsFunction · 0.70
formatDetailedDnsResultsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected