mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2026-04-20 02:44:25 +00:00
deploy: 0d6c301043fd805429ffea0866ad3befd8d2eb13
This commit is contained in:
@@ -22,7 +22,7 @@ function makeCidrList(cidr) {
|
||||
return `############################
|
||||
# Mainland China IPv4 CIDR
|
||||
# Data from misaka.io (misakaio @ GitHub)
|
||||
# Last Updated: ${date.getFullYear()}-${date.getUTCMonth() + 1}-${date.getUTCDate()} ${date.getUTCHours()}:${date.getUTCMinutes()}:${date.getUTCSeconds()}
|
||||
# Last Updated: ${date.toISOString()}
|
||||
# Routes: ${cidr.length}
|
||||
############################\n` + cidr.map(i => `IP-CIDR,${i}`).join('\n') + '\n########### END ############\n';
|
||||
};
|
||||
|
||||
@@ -20,6 +20,8 @@ const rootPath = path.resolve(__dirname, '../');
|
||||
* @returns {string}
|
||||
*/
|
||||
function template(urlList) {
|
||||
const date = new Date();
|
||||
|
||||
return `
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@@ -47,6 +49,7 @@ function template(urlList) {
|
||||
<main class="container">
|
||||
<h1>Sukka Surge Ruleset Server</h1>
|
||||
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
|
||||
<p>Last Updated: ${date.toISOString()}</p>
|
||||
<hr>
|
||||
<br>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user