forked from LBRYCommunity/lbry-sdk
Merge branch 'fix-971-dual-stack'
* fix-971-dual-stack: platform ip: ensure daemon retrieves IPv4 address only
This commit is contained in:
commit
ceaa927ac5
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue