fix(subscribeLogic): correct protocol JSON formatting and add server ID

This commit is contained in:
Chang lue Tsen 2025-10-02 16:51:24 +09:00
parent c835e751ac
commit 6c7d45a640

View File

@ -249,8 +249,9 @@ func (l *SubscribeLogic) createExpiredServers() []*node.Node {
Port: 18080, Port: 18080,
Address: "127.0.0.1", Address: "127.0.0.1",
Server: &node.Server{ Server: &node.Server{
Id: 1,
Name: "Subscribe Expired", Name: "Subscribe Expired",
Protocols: "[{\"type:\"\"shadowsocks\",\"cipher\":\"aes-256-gcm\",\"port\":1}]", Protocols: "[{\"type\":\"shadowsocks\",\"cipher\":\"aes-256-gcm\",\"port\":1}]",
}, },
Protocol: "shadowsocks", Protocol: "shadowsocks",
Enabled: &enable, Enabled: &enable,
@ -261,8 +262,9 @@ func (l *SubscribeLogic) createExpiredServers() []*node.Node {
Port: 18080, Port: 18080,
Address: "127.0.0.1", Address: "127.0.0.1",
Server: &node.Server{ Server: &node.Server{
Id: 1,
Name: "Subscribe Expired", Name: "Subscribe Expired",
Protocols: "[{\"type:\"\"shadowsocks\",\"cipher\":\"aes-256-gcm\",\"port\":1}]", Protocols: "[{\"type\":\"shadowsocks\",\"cipher\":\"aes-256-gcm\",\"port\":1}]",
}, },
Protocol: "shadowsocks", Protocol: "shadowsocks",
Enabled: &enable, Enabled: &enable,