diff --git a/CHANGELOG.md b/CHANGELOG.md index cff4d48..545cb67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 3.8.0 - 2020-06-02 + +### Added +- ASN Org in hops list [https://en.wikipedia.org/wiki/Autonomous_system_(Internet)](https://en.wikipedia.org/wiki/Autonomous_system_(Internet)) + ## 3.6.8 - 2019-12-09 ### Added diff --git a/chrome/content/mailhops-2-msgNotificationBar.js b/chrome/content/mailhops-2-msgNotificationBar.js index 79e9d82..4f91f90 100644 --- a/chrome/content/mailhops-2-msgNotificationBar.js +++ b/chrome/content/mailhops-2-msgNotificationBar.js @@ -339,6 +339,18 @@ var mailHopsDisplay = hop.setAttribute('value',label); this.resultDetails.appendChild(hop); } + + if (response.route[i].asn) { + if (response.route[i].asn.autonomous_system_organization) { + hop = document.createElement('label'); + hop.setAttribute('class', 'host'); + label = 'ASN Org: '; + label = label + response.route[i].asn.autonomous_system_organization; + label = label + ' (' + response.route[i].asn.autonomous_system_number + ')'; + hop.setAttribute('value',label); + this.resultDetails.appendChild(hop); + } + } //append weather if(!weatherRoute && !!response.route[i].weather){ diff --git a/chrome/content/mailhops-3.js b/chrome/content/mailhops-3.js index de2ec1a..aa04a60 100644 --- a/chrome/content/mailhops-3.js +++ b/chrome/content/mailhops-3.js @@ -8,7 +8,7 @@ var mailHops = { msgURI: null, isLoaded: false, options: { - 'version':'MailHops Plugin 3.7.6', + 'version':'MailHops Plugin 3.8.0', 'lan':'en', 'unit':'mi', 'api_http':'https://', diff --git a/manifest.json b/manifest.json index 986854c..246d2e7 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "__MSG_appName__", "description": "__MSG_appDesc__", - "version": "3.7.6", + "version": "3.8.0", "author": "Hopsware LLC", "developer": { "name": "Andrew Van Tassel",