订阅处理
订阅连接后面加上&flag=clash参数,可以直接下载clash格式的订阅文件
使用curl下载时注意&需要转意
curl -o ./test https://xxxxxxx/api/v1/client/subscribe?token=xxxxxxx\&flag=clash
启动脚本
#!/bin/bash
curl -o /mnt/disk/clash/config.yaml https://xxxxx/api/v1/client/subscribe?token=xxxxxx\&flag=clash
/mnt/disk/clash/clash-linux-armv8 -d /mnt/disk/clash
服务
[Unit]
Description=clash
After=network-online.target
[Service]
Type=oneshot
ExecStart=/mnt/disk/clash/clash.sh
KillMode=process
[Install]
WantedBy=multi-user.target
评论区