Skip to content

Commit

Permalink
Prepare 1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Booth committed Apr 9, 2017
1 parent 8a2821d commit d216d51
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.rst
Expand Up @@ -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
-------------

Expand Down
2 changes: 1 addition & 1 deletion server/env.py
Expand Up @@ -127,7 +127,7 @@ def clearnet_identity(self):
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)))
Expand Down
2 changes: 1 addition & 1 deletion server/version.py
@@ -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'
3 changes: 3 additions & 0 deletions tests/server/test_env.py
Expand Up @@ -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
Expand Down

0 comments on commit d216d51

Please sign in to comment.