有没有别的更好的方案,还有什么可以优化的地方 https://www.nodeseek.com/static/image/sticker/xhj/027.gif
#!name=MKCloud 白名单自动加白
#!desc=把本机真实出口 IP 自动加入一个或多个 MKCloud 产品白名单(IP 模式,每台上限 10 条、FIFO 淘汰)。network-changed 与每 10 分钟 cron 触发,IP 未变化时跳过;面板可手动刷新。
#!author=solaireh3
#!arguments=entries
#!arguments-desc=entries: 每个产品一条,用英文逗号分隔,格式 key@hosting_id,例如 pwl_xxx@1111,pwl_yyy@2222。hosting_id 必填,纯数字。
[Rule]
取出口 IP 必须直连,否则拿到的是代理出口 IP
DOMAIN-SUFFIX,icanhazip.com,DIRECT
[Script]
mkcloud-fw-cron = type=cron,cronexp="*/10 * * * *",script-path=https://gist.githubusercontent.com/solaireh3/a063a3e2785bb42eea84b3f5d16214ce/raw/f998063f6f24a5e55ecd957b10b659ca89afe307/mkcloud-whitelist.js,timeout=60,argument="{{{entries}}}|auto"
mkcloud-fw-event = type=event,event-name=network-changed,script-path=https://gist.githubusercontent.com/solaireh3/a063a3e2785bb42eea84b3f5d16214ce/raw/f998063f6f24a5e55ecd957b10b659ca89afe307/mkcloud-whitelist.js,timeout=60,argument="{{{entries}}}|auto"
mkcloud-fw-panel = type=generic,script-path=https://gist.githubusercontent.com/solaireh3/a063a3e2785bb42eea84b3f5d16214ce/raw/f998063f6f24a5e55ecd957b10b659ca89afe307/mkcloud-whitelist.js,timeout=60,argument="{{{entries}}}|panel"
[Panel]
mkcloud-fw = script-name=mkcloud-fw-panel,title=MKCloud 加白,content=点击刷新,update-interval=300

