Merge pull request #247 from avindra/patch-1

publicip: use checkip.amazonaws.com in us-east
This commit is contained in:
tobi-wan-kenobi 2018-04-14 05:22:07 +02:00 committed by GitHub
commit ecdf518d7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ class Module(bumblebee.engine.Module):
super(Module, self).__init__(engine, config, super(Module, self).__init__(engine, config,
bumblebee.output.Widget(full_text=self.public_ip) bumblebee.output.Widget(full_text=self.public_ip)
) )
self._avail_regions = {"us-east":"http://l2.io/ip", self._avail_regions = {"us-east":"http://checkip.amazonaws.com",
"us-central":"http://whatismyip.akamai.com", "us-central":"http://whatismyip.akamai.com",
"us-west":"http://ipv4bot.whatismyipaddress.com", "us-west":"http://ipv4bot.whatismyipaddress.com",
"pl":"http://ip.42.pl/raw", "pl":"http://ip.42.pl/raw",