mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-12 19:53:42 +08:00
NineAI 2.4.2
This commit is contained in:
11
dist/common/utils/maskIpAddress.js
vendored
Normal file
11
dist/common/utils/maskIpAddress.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.maskIpAddress = void 0;
|
||||
function maskIpAddress(ipAddress) {
|
||||
if (!ipAddress)
|
||||
return '';
|
||||
const ipArray = ipAddress.split('.');
|
||||
ipArray[2] = '***';
|
||||
return ipArray.join('.');
|
||||
}
|
||||
exports.maskIpAddress = maskIpAddress;
|
||||
Reference in New Issue
Block a user