Extend the Google Service check and also include subdomains (#1560)
This commit is contained in:
parent
adf2f920b5
commit
20c14f7314
|
@ -296,5 +296,12 @@ helpers.compareVersion = function (v1, v2) {
|
|||
};
|
||||
|
||||
helpers.isGoogleDomain = function (initiatorDomain) {
|
||||
return GoogleDomains[initiatorDomain.replace('www.', '')] || false;
|
||||
let parts = initiatorDomain.split('.');
|
||||
|
||||
// remove subdomains if exist
|
||||
if (parts.length > 2) {
|
||||
parts.shift();
|
||||
}
|
||||
|
||||
return GoogleDomains[parts.join('.')] || false;
|
||||
};
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
<h2>New in LocalCDN:</h2>
|
||||
</div>
|
||||
<div class="release-notes-area">
|
||||
<p></p>
|
||||
<p>Improved</p>
|
||||
<ul>
|
||||
<li></li>
|
||||
<li>Extend the Google Service check and also include subdomains (<a href="https://codeberg.org/nobody/LocalCDN/issues/1560">#1560</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="generator-section">
|
||||
|
|
Loading…
Reference in New Issue