From b0ef68a9c30eb9372c7091aa0942d98abe2e85af Mon Sep 17 00:00:00 2001 From: Andrew Van Tassel Date: Sat, 7 Jan 2017 12:51:57 -0700 Subject: [PATCH] Added check for received header id mismatch for IP address closes #6 and closes #9 --- chrome/content/mailhops.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/mailhops.js b/chrome/content/mailhops.js index bcee3ff..3ee9847 100644 --- a/chrome/content/mailhops.js +++ b/chrome/content/mailhops.js @@ -268,6 +268,7 @@ mailHops.testIP = function(ip,header){ || lastchar.match(/\.|\d|\-/) || ( firstchar == '?' && lastchar == '?' ) || lastchar == ';' + || header.toLowerCase().indexOf('id '+ip) !== -1 || parseInt(ip.substring(0,ip.indexOf('.'))) >= 240 //IANA-RESERVED ){ //only if there is one instance of this IP