//
This commit is contained in:
parent
8f84d9b5f7
commit
b75c6a0b0c
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
|
@ -59,13 +59,13 @@ const reportIP = async (event, uri, country, hostname, endpoint, cycleErrorCount
|
||||||
|
|
||||||
if (event.clientIP === clientIp.address) {
|
if (event.clientIP === clientIp.address) {
|
||||||
logToCSV(event.rayName, event.clientIP, country, hostname, endpoint, event.userAgent, event.action, 'YOUR_IP_ADDRESS');
|
logToCSV(event.rayName, event.clientIP, country, hostname, endpoint, event.userAgent, event.action, 'YOUR_IP_ADDRESS');
|
||||||
log('log', `Your IP address (${event.clientIP}) was unexpectedly received from Cloudflare. URI: ${uri}; Ignoring...`);
|
log('log', `Your IP address (${event.clientIP}) was unexpectedly received from Cloudflare. URI: ${uri}`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uri.length > MAX_URL_LENGTH) {
|
if (uri.length > MAX_URL_LENGTH) {
|
||||||
logToCSV(event.rayName, event.clientIP, country, hostname, endpoint, event.userAgent, event.action, 'URI_TOO_LONG');
|
logToCSV(event.rayName, event.clientIP, country, hostname, endpoint, event.userAgent, event.action, 'URI_TOO_LONG');
|
||||||
log('log', `URL too long ${event.clientIP}; URI: ${uri}`);
|
// log('log', `URL too long ${event.clientIP}; URI: ${uri}`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue