publicip: use checkip.amazonaws.com in us-east

I'm on the east coast, and on average the amazon endpoint is a bit faster. AWS is also a more well known name.
This commit is contained in:
Avindra Goolcharan 2018-04-11 21:48:17 -04:00 committed by GitHub
parent 8a95cb1b0f
commit 56088be995
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,
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-west":"http://ipv4bot.whatismyipaddress.com",
"pl":"http://ip.42.pl/raw",