From de1d5d6310ba0fa0a5e25c27ecf9dcbca32bca2f Mon Sep 17 00:00:00 2001 From: Andrew Van Tassel Date: Tue, 21 Feb 2017 19:30:38 -0700 Subject: [PATCH] Fixed IP order when Received header has multiple IP addresses --- chrome/content/mailhops.js | 4 ++-- install.rdf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/mailhops.js b/chrome/content/mailhops.js index 8ebbb8c..9ec78c5 100644 --- a/chrome/content/mailhops.js +++ b/chrome/content/mailhops.js @@ -9,7 +9,7 @@ var mailHops = msgURI: null, isLoaded: false, options: { - 'version':'MailHops Plugin 3.0.3', + 'version':'MailHops Plugin 3.1.0', 'lan':'en', 'unit':'mi', 'api_http':'https://', @@ -223,7 +223,7 @@ mailHops.getRoute = function(){ received_ips = received_ips.filter(function(item, pos) { return received_ips.indexOf(item) == pos; }); - for( var r=0; r < received_ips.length; r++ ){ + for( var r=received_ips.length; r >= 0 ; r-- ){ if(regexIp.test(received_ips[r]) && mailHops.testIP(received_ips[r],rline)){ all_ips.unshift( received_ips[r] ); } diff --git a/install.rdf b/install.rdf index b2a2e85..e6ff3b5 100644 --- a/install.rdf +++ b/install.rdf @@ -5,7 +5,7 @@ 2 thunderbird@mailhops.com - 3.0.3 + 3.1.0 MailHops MailHops maps the route an email took to get to you. Displaying the senders location, weather, user-agent and authentication used.