mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-18 15:20:08 -07:00
Fixed IP order when Received header has multiple IP addresses
This commit is contained in:
parent
2feddca69a
commit
de1d5d6310
@ -9,7 +9,7 @@ var mailHops =
|
|||||||
msgURI: null,
|
msgURI: null,
|
||||||
isLoaded: false,
|
isLoaded: false,
|
||||||
options: {
|
options: {
|
||||||
'version':'MailHops Plugin 3.0.3',
|
'version':'MailHops Plugin 3.1.0',
|
||||||
'lan':'en',
|
'lan':'en',
|
||||||
'unit':'mi',
|
'unit':'mi',
|
||||||
'api_http':'https://',
|
'api_http':'https://',
|
||||||
@ -223,7 +223,7 @@ mailHops.getRoute = function(){
|
|||||||
received_ips = received_ips.filter(function(item, pos) {
|
received_ips = received_ips.filter(function(item, pos) {
|
||||||
return received_ips.indexOf(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)){
|
if(regexIp.test(received_ips[r]) && mailHops.testIP(received_ips[r],rline)){
|
||||||
all_ips.unshift( received_ips[r] );
|
all_ips.unshift( received_ips[r] );
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<Description about="urn:mozilla:install-manifest">
|
<Description about="urn:mozilla:install-manifest">
|
||||||
<em:type>2</em:type>
|
<em:type>2</em:type>
|
||||||
<em:id>thunderbird@mailhops.com</em:id>
|
<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: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>
|
<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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user