mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 12:43:18 +08:00
Unify parts of the model with MetaCubeX.
This commit is contained in:
@ -35,7 +35,7 @@ func SubHandler(model M.ClashType, template string) func(c *gin.Context) {
|
||||
|
||||
if query.NodeListMode {
|
||||
nodelist := M.NodeList{}
|
||||
nodelist.Proxies = sub.Proxies
|
||||
nodelist.Proxy = sub.Proxy
|
||||
marshal, err := yaml.Marshal(nodelist)
|
||||
if err != nil {
|
||||
c.String(http.StatusInternalServerError, "YAML序列化失败: "+err.Error())
|
||||
|
Reference in New Issue
Block a user