mirror of
https://github.com/vastxie/99AI.git
synced 2024-11-16 11:42:25 +08:00
12 lines
321 B
JavaScript
12 lines
321 B
JavaScript
"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;
|