Merge branch 'fix-971-dual-stack'

* fix-971-dual-stack:
  platform ip: ensure daemon retrieves IPv4 address only
This commit is contained in:
Alex Grintsvayg 2017-10-31 07:00:05 -04:00
commit ceaa927ac5
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ at anytime.
### Fixed
* Fixed amount of close nodes to add to list in case of extension to neighbouring k-buckets
* Fixed external IP detection via jsonip.com (avoid detecting IPv6)
*
### Deprecated

View file

@ -39,7 +39,7 @@ def get_platform(get_ip=True):
if get_ip:
try:
p['ip'] = json.load(urlopen('http://jsonip.com'))['ip']
p['ip'] = json.load(urlopen('http://ipv4.jsonip.com'))['ip']
except:
p['ip'] = "Could not determine IP"