parent
3d4e23b5a1
commit
189f9f97af
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue