3x-ui/sub
Nikita Nemirovsky b112f4fc98 fix(sub): use safe type assertion for xhttp mode field
Unsafe type assertion `xhttp["mode"].(string)` panics when mode is
nil (e.g., when xhttpSettings only contains path without mode). The
panic is caught by Gin's recovery middleware and returned as HTTP 500.

Use comma-ok pattern matching the fix already applied to gRPC's
authority field in 21d98813.

Fixes #3987
2026-04-02 09:54:55 +08:00
..
default.json dokodemo-door, socks renamed to mixed, tunnel 2025-09-09 13:57:40 +02:00
sub.go feat: more subscription information fields (#3701) 2026-01-26 23:06:01 +01:00
subController.go Improve telego client robustness and retries 2026-02-14 22:49:19 +01:00
subJsonService.go Remove allowInsecure 2026-02-11 18:21:23 +01:00
subService.go fix(sub): use safe type assertion for xhttp mode field 2026-04-02 09:54:55 +08:00