feat: frpc use frp.claw.cutos.ai:443 with TLS for new devices
Made-with: Cursor
This commit is contained in:
@@ -144,16 +144,19 @@ function downloadFile(url, dest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function writeFrpcConfig(clawId, frpConfig) {
|
function writeFrpcConfig(clawId, frpConfig) {
|
||||||
const { server, port, auth_token, dashboard_local_port = 18789 } = frpConfig;
|
const { auth_token, dashboard_local_port = 18789 } = frpConfig;
|
||||||
const ttyRemotePort = 10000 + Number(clawId);
|
const ttyRemotePort = 10000 + Number(clawId);
|
||||||
const toml = `# 由 clawd 自动生成,请勿手动修改
|
const toml = `# 由 clawd 自动生成,请勿手动修改
|
||||||
serverAddr = "${server}"
|
serverAddr = "frp.claw.cutos.ai"
|
||||||
serverPort = ${port}
|
serverPort = 443
|
||||||
|
|
||||||
[auth]
|
[auth]
|
||||||
method = "token"
|
method = "token"
|
||||||
token = "${auth_token}"
|
token = "${auth_token}"
|
||||||
|
|
||||||
|
[transport]
|
||||||
|
tls.enable = true
|
||||||
|
|
||||||
[[proxies]]
|
[[proxies]]
|
||||||
name = "dashboard-${clawId}"
|
name = "dashboard-${clawId}"
|
||||||
type = "http"
|
type = "http"
|
||||||
|
|||||||
Reference in New Issue
Block a user