1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-18 07:10:09 -07:00

Fixed IP order when Received header has multiple IP addresses

This commit is contained in:
Andrew Van Tassel 2017-02-21 19:30:38 -07:00
parent 2feddca69a
commit de1d5d6310
2 changed files with 3 additions and 3 deletions

View File

@ -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] );
}

View File

@ -5,7 +5,7 @@
<Description about="urn:mozilla:install-manifest">
<em:type>2</em:type>
<em:id>thunderbird@mailhops.com</em:id>
<em:version>3.0.3</em:version>
<em:version>3.1.0</em:version>
<em:name>MailHops</em:name>
<em:description>MailHops maps the route an email took to get to you. Displaying the senders location, weather, user-agent and authentication used.</em:description>