Improve support for popular Chinese mirrors

This commit is contained in:
Thomas Rientjes
2018-05-22 16:15:51 +02:00
parent 71d4a39bf3
commit 3b13b60bd8
2 changed files with 10 additions and 1 deletions

View File

@@ -238,5 +238,10 @@ var mappings = {
}
};
// Mirror
// Geekzu Public Service [Mirror]
mappings['sdn.geekzu.org'] = {
'/ajax/ajax/libs/': mappings['ajax.googleapis.com']['/ajax/libs/']
};
// USTC Linux User Group [Mirror]
mappings['ajax.proxy.ustclug.org'] = mappings['ajax.googleapis.com'];

View File

@@ -162,6 +162,10 @@ helpers.determineCdnName = function (domainName) {
return 'Sina Public Resources';
case 'upcdn.b0.upaiyun.com':
return 'UpYun Library';
case 'sdn.geekzu.org':
return 'Geekzu Public Service [Mirror]';
case 'ajax.proxy.ustclug.org':
return 'USTC Linux User Group [Mirror]';
default:
return 'Unknown';
}