Skip to content

Commit aaa5e0b

Browse files
committed
fix: фильтрация naive и shadowsocksr из sing-box конфига
naive — только inbound в sing-box (не outbound), shadowsocksr — deprecated с 1.6.0. Убраны из supportedOutboundTypes, теперь корректно фильтруются при парсинге подписок.
1 parent 7c2c63c commit aaa5e0b

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66

77
---
88

9-
## [2.5.7-yumash-1.1.2] — 2026-02-24
9+
## [2.5.7-yumash-1.1.3] — 2026-02-24
1010

1111
### Исправлено / Fixed
1212

1313
- **Ошибка добавления подписок с xhttp транспортом** — Hiddify Manager `/singbox` эндпоинт возвращает аутбаунды (vless/vmess/trojan) с `transport.type: "xhttp"`, которые sing-box не поддерживает. Теперь такие аутбаунды автоматически конвертируются в Xray-core формат и направляются через SOCKS-мост, как и остальные xhttp-прокси
1414
- **Failed to add subscriptions with xhttp transport** — Hiddify Manager `/singbox` endpoint returns outbounds (vless/vmess/trojan) with `transport.type: "xhttp"` which sing-box doesn't support. These outbounds are now automatically converted to Xray-core format and routed through the SOCKS bridge, like other xhttp proxies
15+
- **Фильтрация неподдерживаемых аутбаундов** — убраны `naive` (только inbound в sing-box) и `shadowsocksr` (deprecated с sing-box 1.6.0) из списка поддерживаемых типов, теперь они корректно фильтруются вместо ошибки валидации
16+
- **Filter unsupported outbound types** — removed `naive` (inbound-only in sing-box) and `shadowsocksr` (deprecated since sing-box 1.6.0) from supported types list, they are now properly filtered instead of causing validation errors
1517

1618
---
1719

libcore/config/parser.go

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -196,28 +196,27 @@ func GetXrayConfigJson() string {
196196
}
197197

198198
// Supported sing-box outbound types
199+
// NOTE: "naive" is inbound-only in sing-box, "shadowsocksr" is deprecated since 1.6.0
199200
var supportedOutboundTypes = map[string]bool{
200-
"direct": true,
201-
"block": true,
202-
"socks": true,
203-
"http": true,
204-
"shadowsocks": true,
205-
"vmess": true,
206-
"trojan": true,
207-
"naive": true,
208-
"wireguard": true,
209-
"hysteria": true,
210-
"tor": true,
211-
"ssh": true,
212-
"shadowtls": true,
213-
"shadowsocksr": true,
214-
"vless": true,
215-
"tuic": true,
216-
"hysteria2": true,
217-
"selector": true,
218-
"urltest": true,
219-
"dns": true,
220-
"anytls": true,
201+
"direct": true,
202+
"block": true,
203+
"socks": true,
204+
"http": true,
205+
"shadowsocks": true,
206+
"vmess": true,
207+
"trojan": true,
208+
"wireguard": true,
209+
"hysteria": true,
210+
"tor": true,
211+
"ssh": true,
212+
"shadowtls": true,
213+
"vless": true,
214+
"tuic": true,
215+
"hysteria2": true,
216+
"selector": true,
217+
"urltest": true,
218+
"dns": true,
219+
"anytls": true,
221220
}
222221

223222
//go:embed config.json.template

version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Example: 2.5.7-yumash-1.0.0
44

55
hiddify_base: "2.5.7"
6-
yumash_version: "1.1.2"
6+
yumash_version: "1.1.3"

0 commit comments

Comments
 (0)