mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
feat: IP4P 合并进 IPv6; ProxyUtils 中增加 ipAddress
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import * as ipAddress from 'ip-address';
|
||||
// source: https://stackoverflow.com/a/36760050
|
||||
const IPV4_REGEX = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/;
|
||||
|
||||
@@ -94,6 +95,7 @@ function getPolicyDescriptor(str) {
|
||||
// })();
|
||||
|
||||
export {
|
||||
ipAddress,
|
||||
isIPv4,
|
||||
isIPv6,
|
||||
isValidPortNumber,
|
||||
|
||||
Reference in New Issue
Block a user