mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
Since v2rayA now exclusively uses the v2raya_core binary, simplify or remove all logic that detected, compared, or branched on different core types (v2ray, xray, merged). - Remove CheckCoreVersion, CoreVersionMismatchError, and the CoreVersion check in StartCoreProcess — core v2raya version comparison is no longer needed. - Remove DetectCoreTypeByBinaryName and the Unknown/V2ray/Xray/Merged variant aliases. The only remaining Variant constant is V2rayaCore. - Simplify GetV2rayServiceVersion: drop all CoreType/env-config detection and variant mismatch verification. The function always returns V2rayaCore and the version string from the binary. - Simplify CheckV5 / isVersionSatisfied to return only an error, dropping the unused Variant return value. - Remove variant-branching in Shadowsocks and Trojan Configuration methods — both always use the MT (Xray-compatible) path. - Remove the CheckCoreVersion call from version.go and hardcode coreVersionValid/ variant in the API response. - Drop the now-unused where import from shadowsocks.go and trojan.go.