Prepare 1.0.9
This commit is contained in:
parent
8a2821d542
commit
d216d5111b
@ -127,6 +127,15 @@ Roadmap
|
||||
ChangeLog
|
||||
=========
|
||||
|
||||
Version 1.0.9
|
||||
-------------
|
||||
|
||||
- ignore peers not appearing in their features list
|
||||
- validate hostnames in Env object
|
||||
- added tests for env.py
|
||||
- Einsteinium support and contrib script shebang fix (erasmospunk)
|
||||
- set last_good only if successfully verified
|
||||
|
||||
Version 1.0.8
|
||||
-------------
|
||||
|
||||
|
||||
@ -127,7 +127,7 @@ class Env(lib_util.LoggedClass):
|
||||
ip = ip_address(host)
|
||||
except ValueError:
|
||||
bad = (not lib_util.is_valid_hostname(host)
|
||||
or hostname.lower() == 'localhost')
|
||||
or host.lower() == 'localhost')
|
||||
else:
|
||||
bad = (ip.is_multicast or ip.is_unspecified
|
||||
or (ip.is_private and (self.irc or self.peer_announce)))
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# Server name and protocol versions
|
||||
|
||||
VERSION = 'ElectrumX 1.0.8b'
|
||||
VERSION = 'ElectrumX 1.0.9'
|
||||
PROTOCOL_MIN = '1.0'
|
||||
PROTOCOL_MAX = '1.0'
|
||||
|
||||
@ -203,6 +203,9 @@ def test_clearnet_identity():
|
||||
with pytest.raises(Env.Error):
|
||||
Env()
|
||||
os.environ['REPORT_HOST'] = '224.0.0.2'
|
||||
with pytest.raises(Env.Error):
|
||||
Env()
|
||||
os.environ['REPORT_HOST'] = '$HOST'
|
||||
with pytest.raises(Env.Error):
|
||||
Env()
|
||||
# Accept private IP, unless IRC or PEER_ANNOUNCE
|
||||
|
||||
Loading…
Reference in New Issue
Block a user