mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 17:12:33 +08:00
fix ipv6 issue
This commit is contained in:
@@ -562,6 +562,9 @@ function isIPv4InCFCIDR(ip) {
|
||||
*/
|
||||
|
||||
function convertIp2Num(ip){
|
||||
if(!ip){
|
||||
return 0;
|
||||
}
|
||||
const ipParts = ip.split('.');
|
||||
if(ipParts.length !== 4){
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user