IP地址无效化

This commit is contained in:
yige committed 2020-05-20 16:08:32 +08:00
1 parent 34a76e22b9
commit 32fd589c3f
4 files changed
+20

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
/**
* @param {string} address
* @return {string}
*/
export const defangIPaddr = function (address) {
return address.replace(/\./g, '[.]')
}