REM:
1.修改浩瀚设备防护IP范围判断
This commit is contained in:
chenlinghy 2020-09-16 10:17:42 +08:00
parent 3d4e23b5a1
commit 189f9f97af
1 changed files with 18 additions and 15 deletions

View File

@ -9,6 +9,8 @@ import com.dispose.pojo.vo.DeviceFirewareInfo;
import com.haohan.dispose.common.HaoHanStartCleanResp;
import com.haohan.dispose.common.HaoHanStopCleanResp;
import com.haohan.dispose.protocol.RestfulInterface;
import inet.ipaddr.IPAddress;
import inet.ipaddr.IPAddressString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@ -179,6 +181,7 @@ public class HaoHanAbilityImpl implements DisposeAbility {
*/
@Override
public boolean isCarryProtectIp(String ipAddr) {
return true;
IPAddress addr = new IPAddressString(ipAddr).getAddress();
return addr.isIPv4();
}
}