Made peer verification more secure
Merge pull request #295 from SammyK/made-peer-verification-more-secure

[4.0] Made peer verification more secure