REM:
1. 增加调试日志
This commit is contained in:
HuangXin 2020-10-09 09:15:03 +08:00
parent 9ad87e87a5
commit d7be22a041
1 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,7 @@ public class DpTechAbilityImpl implements DisposeAbility {
protectIpV6.clear(); protectIpV6.clear();
objs.getProtectionObjectDataForService().forEach(v -> { objs.getProtectionObjectDataForService().forEach(v -> {
String ipSeg = v.getIpSegment().getValue(); String ipSeg = v.getIpSegment().getValue();
log.debug("DpTech response type: {}, value: {}", v.getIpType(), ipSeg);
if (v.getIpType() == 0 && ipSeg.length() > 0) { if (v.getIpType() == 0 && ipSeg.length() > 0) {
protectIpV4.addAll(Arrays.asList(ipSeg.replaceAll("\\d+_", "").split(","))); protectIpV4.addAll(Arrays.asList(ipSeg.replaceAll("\\d+_", "").split(",")));
} else if (v.getIpType() == 1 && ipSeg.length() > 0) { } else if (v.getIpType() == 1 && ipSeg.length() > 0) {
@ -262,6 +263,9 @@ public class DpTechAbilityImpl implements DisposeAbility {
} }
} catch (Exception ignored) { } catch (Exception ignored) {
} }
log.debug("V4 range: {}", protectIpV4);
log.debug("V6 range: {}", protectIpV6);
} }
/** /**