andy-portmen / country-flags

adds a toolbar button to browser address-bar displaying current physical location of visited website
https://webextension.org/listing/country-flags.html
Mozilla Public License 2.0
133 stars 35 forks source link

doesn't work with vpn addons #53

Closed choomchichi closed 6 years ago

choomchichi commented 6 years ago

when a vpn addon is installed, this always shows the vpn ip, not the server ip. but this one correctly works, maybe it can help: https://addons.mozilla.org/en-US/firefox/addon/full-ip-info/ thanks

andy-portmen commented 6 years ago

FAQ7? https://add0n.com/country-flags.html

choomchichi commented 6 years ago

thank you for your replying, I tried this, but doesn't work. The "open in ..." addons work perfectly, but this one doesn't work. I enabled the "native dns resolver" option, and the external command too. the external command works but the flag is still the same as my vpn country every where.

andy-portmen commented 6 years ago

So the extension uses your OS to resolve the DNS. This simple NodeJS code is used

require('dns').lookup('www.google.com', (err, address, family) => console.log(err, address, family))

Please try it on NodeJS and see if you can play with the code to fix the issue. If so we can push an update!

choomchichi commented 6 years ago

Thank you so much, I'll try soon.