Repository navigation
profile import: ignore TLS fields of a VMess JSON link without TLS - #346
Merged
aimalygin merged 1 commit intoNov 24, 2026
Merged
Conversation
Panels such as V2Board write `fp` on every base64 JSON vmess:// link, also when `tls` is empty. v2rayN builds TLS settings only when `tls` names a security, so there the field configures nothing. Here the importer kept it and stream_settings refused the leftover parameter, so a plain WebSocket link failed with "profile contains an unsupported setting". With `tls` absent, empty or `none`, the JSON dialect now drops `sni`, `alpn` and `fp` before the stream mapping. A link with TLS maps them into tlsSettings as before; the URI dialect and the REALITY fields are unchanged.
huzgnm
pushed a commit
to huzgnm/xray-rust
that referenced
this pull request
Nov 24, 2026
…-messages apple: let a provider subclass answer its own app messages CHANGELOG.md: both Unreleased entries kept, this one after aimalygin#346's.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Panels such as V2Board write
fpon every base64 JSONvmess://link, also whentlsis empty. v2rayN builds TLS settings only whentlsnames a security, so there the field configures nothing. Here the importer kept it andstream_settingsrefused the leftover parameter, so a plain WebSocket link failed with "profile contains an unsupported setting".With
tlsabsent, empty ornone, the JSON dialect now dropssni,alpnandfpbefore the stream mapping. A link with TLS maps them intotlsSettingsas before; the URI dialect and the REALITY fields are unchanged.Fixes #343
Verification
vmess_json_ignores_tls_fields_without_tls(plain link imports withouttlsSettings; TLS link still getsfingerprint)cargo fmt --check,cargo clippy -p xray-config --all-targets --all-features -- -D warnings,cargo test -p xray-config --test vmess_import_tests --test profile_import_tests --test tooling_testsdocs/config-compatibility.md,CHANGELOG.md(Unreleased)Compatibility and security
Profile import only. JSON VMess links without TLS that were rejected now import as plain profiles; links with TLS, the URI dialect and REALITY handling are unchanged. No config schema, FFI ABI, lifecycle or resource-limit change.