mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-19 11:34:59 +03:00
feat(sub): add Incy app-management parameters (#6650)
* feat(sub): add Incy app-management parameters The panel already pushes a set of Happ headers, but INCY documents its own lowercase header names and its own value domains, so a Happ-shaped payload gets ignored by the client (per-app mode is bypass|proxy, not on|bypass, and per-app-proxy-enable has no Happ counterpart at all). Add a sibling Incy path that emits exactly the documented headers. Covered, per https://docs.incy.cc/en/app-management/: - profile-description, sort-order, support-email, announce-url, premium-url - banner text/button/URL and the two hex colours - hide-url, hide-check, no-limit-enabled - per-app split tunnelling (enable/mode/list) - TCP fragmentation (enable/length/interval/packets) - UDP noise packets (enable/type/packet/delay) - DoH pre-resolution (enable/domain/IP) Each string setting is tri-state: an empty value omits the header, so an untouched panel never overrides the subscriber's own choice in the app. Values are validated against the documented domains and dropped when they do not match, and non-ASCII text is base64-wrapped the way the docs require for Cyrillic. INCY identifies itself as INCY/<version>/<platform>, which gates the headers behind the same auto-detect switch the Happ path uses. Headers the panel already emits for every client (Profile-Title, Support-Url, Profile-Web-Page-Url, Announce, Profile-Update-Interval, Subscription-Userinfo) and Incy's routing line are left as they are. The Premium API (theme, defaultPingProtocol, fallbackHosts, ...) is a separate encrypted endpoint and stays out of scope here. * fix(sub): keep Incy per-app list entries separate on the wire The Incy settings textarea takes one package per line, as Incy documents for per-app-proxy-list, but the header path ran the value through sanitizeHeaderValue, which deletes CR/LF. "com.google.chrome\norg.telegram.messenger" reached the client as the single bogus package "com.google.chromeorg.telegram.messenger", so per-app split tunnelling silently matched no app. Join comma- or line-separated entries as CSV instead. Also drop three tests that could not fail: TestIncyExcludesHappOnlyHeaders (ApplyIncyHeaders has no path that emits Happ headers, and the non-Happ UA gate is already pinned by TestApplyHappHeaders_Gating) and two UI tests that only asserted updateSetting received the key the JSX passes it. --------- Co-authored-by: DIMFLIX <dimflix@users.noreply.github.com> Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
@@ -1670,7 +1670,76 @@
|
||||
"discordNotifyTimeDesc": "Com que frequência o bot do Discord envia relatórios periódicos. Escolha um intervalo predefinido ou selecione Personalizado para inserir uma expressão crontab.",
|
||||
"discordNotifyBackup": "Backup do Banco de Dados",
|
||||
"discordNotifyBackupDesc": "Enviar arquivo de backup do banco de dados junto com o relatório.",
|
||||
"discordEventBusNotifyDesc": "Selecione quais eventos disparam notificações no Discord"
|
||||
"discordEventBusNotifyDesc": "Selecione quais eventos disparam notificações no Discord",
|
||||
"subIncyAppAutoDetect": "Detecção automática de cabeçalhos do Incy",
|
||||
"subIncyAppAutoDetectDesc": "Envia os cabeçalhos do Incy quando o User-Agent do cliente é INCY.",
|
||||
"subIncyNotSet": "Não definido",
|
||||
"subIncyOn": "Ativado",
|
||||
"subIncyOff": "Desativado",
|
||||
"subIncyGroupApp": "Aplicativo",
|
||||
"subIncyProfileDescription": "Descrição do perfil",
|
||||
"subIncyProfileDescriptionDesc": "Descrição separada da assinatura. Texto não ASCII vai em base64.",
|
||||
"subIncySortOrder": "Ordem dos servidores",
|
||||
"subIncySortOrderDesc": "Para esta assinatura no iOS/Android, global no desktop.",
|
||||
"subIncySortNone": "Ordem da assinatura",
|
||||
"subIncySortPing": "Por ping",
|
||||
"subIncySortName": "Por nome",
|
||||
"subIncySupportEmail": "Email de suporte",
|
||||
"subIncySupportEmailDesc": "Adiciona um botão Email ao cartão da assinatura.",
|
||||
"subIncyAnnounceUrl": "Link do anúncio",
|
||||
"subIncyAnnounceUrlDesc": "Destino do anúncio na tela inicial.",
|
||||
"subIncyPremiumUrl": "Link Premium",
|
||||
"subIncyPremiumUrlDesc": "Botão Premium no cartão; também tem prioridade no botão do banner.",
|
||||
"subIncyGroupBanners": "Banners",
|
||||
"subIncyBannerText": "Texto do banner",
|
||||
"subIncyBannerTextDesc": "Substitui o texto do banner. Apenas para provedores premium.",
|
||||
"subIncyBannerButtonText": "Texto do botão do banner",
|
||||
"subIncyBannerButtonTextDesc": "Rótulo do botão do banner. Vazio oculta o botão.",
|
||||
"subIncyBannerButtonUrl": "Link do botão do banner",
|
||||
"subIncyBannerButtonUrlDesc": "URL do botão do banner.",
|
||||
"subIncyBannerBgColor": "Fundo do banner",
|
||||
"subIncyBannerBgColorDesc": "Cor hex, ex. #E53E3E.",
|
||||
"subIncyBannerButtonColor": "Cor do botão do banner",
|
||||
"subIncyBannerButtonColorDesc": "Cor hex, ex. #38A169.",
|
||||
"subIncyGroupPrivacy": "Privacidade",
|
||||
"subIncyHideUrl": "Ocultar URL da assinatura",
|
||||
"subIncyHideUrlDesc": "Oculta a URL em Compartilhar, Copiar, QR e backups.",
|
||||
"subIncyHideCheck": "Ocultar o botão Check",
|
||||
"subIncyHideCheckDesc": "Remove o botão de verificação de conexão da tela inicial.",
|
||||
"subIncyNoLimit": "Modo No-Limit (iOS)",
|
||||
"subIncyNoLimitDesc": "Modo econômico para o túnel sobreviver ao limite de 50 MB do iOS.",
|
||||
"subIncyPerAppEnable": "Modo per-app (Android)",
|
||||
"subIncyPerAppEnableDesc": "Ativa o split tunnel por aplicativo. Desativado sobrepõe a escolha do usuário.",
|
||||
"subIncyPerAppMode": "Tipo do modo per-app",
|
||||
"subIncyPerAppModeDesc": "proxy: só os apps listados usam a VPN; bypass: o contrário.",
|
||||
"subIncyPerAppModeProxy": "Somente apps listados",
|
||||
"subIncyPerAppModeBypass": "Apps listados ignoram",
|
||||
"subIncyPerAppList": "Lista de apps",
|
||||
"subIncyPerAppListDesc": "Nomes de pacote separados por vírgula ou linha, ou uma URL de arquivo texto.",
|
||||
"subIncyGroupNetwork": "Rede",
|
||||
"subIncyFragmentationEnable": "Fragmentação",
|
||||
"subIncyFragmentationEnableDesc": "Ativa a fragmentação TCP e sobrepõe a configuração global.",
|
||||
"subIncyFragmentLength": "Tamanho do fragmento",
|
||||
"subIncyFragmentLengthDesc": "Intervalo em bytes, ex. 10-30.",
|
||||
"subIncyFragmentInterval": "Intervalo de fragmentação",
|
||||
"subIncyFragmentIntervalDesc": "Intervalo em milissegundos, ex. 20-40.",
|
||||
"subIncyFragmentPackets": "Pacotes do fragmento",
|
||||
"subIncyFragmentPacketsDesc": "Quais pacotes TCP fragmentar: tlshello, 1-3, 1 ou all.",
|
||||
"subIncyNoisesEnable": "Pacotes de ruído",
|
||||
"subIncyNoisesEnableDesc": "Envia ruído UDP aleatório antes do handshake da VPN.",
|
||||
"subIncyNoisesType": "Tipo de ruído",
|
||||
"subIncyNoisesTypeDesc": "rand, str ou hex.",
|
||||
"subIncyNoisesPacket": "Conteúdo do pacote de ruído",
|
||||
"subIncyNoisesPacketDesc": "Payload; com rand, um intervalo de tamanho como 10-20.",
|
||||
"subIncyNoisesDelay": "Atraso do ruído",
|
||||
"subIncyNoisesDelayDesc": "Intervalo de atraso em milissegundos, ex. 10-50.",
|
||||
"subIncyResolveEnable": "Resolver endereço do servidor (DoH)",
|
||||
"subIncyResolveEnableDesc": "Resolve o endereço do servidor via DoH antes de conectar.",
|
||||
"subIncyResolveDnsDomain": "Endpoint DoH",
|
||||
"subIncyResolveDnsDomainDesc": "URL do servidor DoH, geralmente terminando em /dns-query.",
|
||||
"subIncyResolveDnsIp": "IP do servidor DoH",
|
||||
"subIncyResolveDnsIpDesc": "IP do servidor DoH para bootstrap.",
|
||||
"subIncyGroupRouting": "Roteamento"
|
||||
},
|
||||
"xray": {
|
||||
"importRules": "Importar regras",
|
||||
|
||||
Reference in New Issue
Block a user