package com.ycwl.basic.puzzle.edge.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 边缘 Worker 接入安全配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "puzzle.edge.worker.security")
public class PuzzleEdgeWorkerSecurityProperties {

    /**
     * 是否启用访问 IP 校验
     */
    private boolean enabled = true;

    /**
     * 允许访问的 IPv4 CIDR（默认：100.64.0.0/24）
     */
    private String allowedIpCidr = "100.64.0.0/24";
}
