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

Extensions is not able tot get 'real' ip address if connect through proxy #5

Closed heubergen closed 6 years ago

heubergen commented 7 years ago

I'm connected behind a proxy in my company. The extensions seems not be able to get the 'real' ip address from the server.

For example the GOV site from Switzerland (https://www.admin.ch) which is clearly hosted in switzerland. STR:

  1. Install Country Flags
  2. Configure a proxy
  3. Open https://www.admin.ch
c33s commented 6 years ago

same problem here. https://addons.mozilla.org/en-US/firefox/addon/server-ip has the same problem

andy-portmen commented 6 years ago

When a proxy server is set, this server is the first external server and hence there is no way for the browser to detect the actual server's IP address.

In the new version, you can ask the extension to use your OS level DNS resolver. If this option is enabled, the extension will display the correct IP address and hence the correct flag.