From 8036cc1f902a9fe65d7ba346bbc0da8e26fd1f27 Mon Sep 17 00:00:00 2001 From: chenlinghy Date: Thu, 14 Jan 2021 15:10:46 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=E4=BF=AE=E6=94=B9=E8=BF=AA?= =?UTF-8?q?=E6=99=AE=E8=AE=BE=E5=A4=87=E9=98=B2=E6=8A=A4=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java b/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java index 0c5319e8..cccc0b8d 100644 --- a/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java +++ b/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java @@ -165,7 +165,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl { .cleanupDevices(k.getCleaningDevices().getValue()) .protectName(objName) .detectionDevices(k.getDetectionDevices().getValue()) - .ipType(k.getIpType() == 0 ? IpAddrType.IPV4 : IpAddrType.IPV6) + .ipType(k.getIpType() == 4 ? IpAddrType.IPV4 : IpAddrType.IPV6) .ipSegment(new Hashtable<>()) .build(); // 添加到缓存