mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-07-04 20:02:34 +08:00
Compare commits
1 Commits
v0.0.12
...
v0.0.13-be
Author | SHA1 | Date | |
---|---|---|---|
33d37e631b |
@ -27,10 +27,9 @@ func SubHandler(model M.ClashType, template string) func(c *gin.Context) {
|
||||
|
||||
if len(query.Subs) == 1 {
|
||||
userInfoHeader, err := common.FetchSubscriptionUserInfo(query.Subs[0], "clash", config.GlobalConfig.RequestRetryTimes)
|
||||
if err != nil {
|
||||
c.String(http.StatusInternalServerError, err.Error())
|
||||
if err == nil {
|
||||
c.Header("subscription-userinfo", userInfoHeader)
|
||||
}
|
||||
c.Header("subscription-userinfo", userInfoHeader)
|
||||
}
|
||||
|
||||
if query.NodeListMode {
|
||||
|
Reference in New Issue
Block a user