4 ms·
To determine ipv4/6, do you need to send that hostname and ip off to somewhere to get a response? or can it be done locally without leaving the machine?
by ugh123 3y ago
To determine ipv4/6, do you need to send that hostname and ip off to somewhere to get a response? or can it be done locally without leaving the machine?
- shzhdbi09gv8ioi 3y agoYou can determine that by looking at the value. IPv4: 123.123.123.123 IPv6: 2001:db8::8a2e:370:7334
- ugh123 3y agoOh yeah. DUH!
- p1mrx 3y agoIt's local. The webRequest API provides an 'ip' field with each request, and the hostname can be extracted from the URL. Once you have an IP address, just check for colons. https://developer.chrome.com/docs/extensions/reference/api/webRequest https://developer.chrome.com/docs/extensions/reference/api/w...
- dieortin 3y agoipv6 addresses are different, so they’re easy to distinguish