mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 05:36:08 +08:00
feat: node name
This commit is contained in:
@@ -6,6 +6,9 @@ const headers = {
|
||||
'Content-Type': 'application/xml; charset=utf-8',
|
||||
'Cache-Control': `public, max-age=${config.cache.routeExpire}`,
|
||||
};
|
||||
if (config.nodeName) {
|
||||
headers['RSSHub-Node'] = config.nodeName;
|
||||
}
|
||||
|
||||
module.exports = async (ctx, next) => {
|
||||
logger.info(`${ctx.url}, user IP: ${ctx.ips[0] || ctx.ip}`);
|
||||
|
||||
Reference in New Issue
Block a user