Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/src/content/docs/en/project/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Branches, pull requests, tests and syncing with mihomo.

| Branch | What goes there |
| --- | --- |
| `dev` | All pull requests. Builds as `Prerelease-dev`. |
| `dev` | All pull requests. Tested on every push, not packaged. |
| `main` | Only merges from `dev`, done by maintainers. Builds as `Prerelease-main` and releases. |

**Open every pull request against `dev`.** A PR against `main` will be asked to change its base. Both branches are protected: no direct pushes and no force pushes.
Expand Down
3 changes: 1 addition & 2 deletions site/src/content/docs/en/start/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ Builds are published as [GitHub releases](https://github.com/getmikan/Citrus/rel
| --- | --- | --- |
| release | `vX.Y.Z` ([latest](https://github.com/getmikan/Citrus/releases/latest)) | Stable versions. |
| Prerelease-main | [`Prerelease-main`](https://github.com/getmikan/Citrus/releases/tag/Prerelease-main) | A build of the `main` branch. |
| Prerelease-dev | [`Prerelease-dev`](https://github.com/getmikan/Citrus/releases/tag/Prerelease-dev) | A build of the `dev` branch, the newest changes. |

Prereleases carry the branch and commit instead of a version, for example `citrus-linux-arm64-dev-1a2b3c4.gz`.
Prereleases carry the branch and commit instead of a version, for example `citrus-linux-arm64-main-1a2b3c4.gz`. The `dev` branch is tested but not packaged; to try it, [build from source](#build-from-source).

- **Linux, macOS, FreeBSD:** a `.gz` with one binary. Linux also gets `.deb`, `.rpm` and `.pkg.tar.zst`.
- **Windows:** a `.zip` with `citrus-windows-<arch>.exe`.
Expand Down
2 changes: 1 addition & 1 deletion site/src/content/docs/project/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Ветки, pull request'ы, тесты и синхронизаци

| Ветка | Что туда попадает |
| --- | --- |
| `dev` | Все pull request'ы. Собирается в `Prerelease-dev`. |
| `dev` | Все pull request'ы. Тестируется на каждый push, в пакеты не собирается. |
| `main` | Только слияния из `dev`, их делают мейнтейнеры. Собирается в `Prerelease-main` и релизы. |

**Открывайте pull request в `dev`.** PR в `main` попросят перенацелить. Обе ветки защищены: прямые и force-push'и запрещены.
Expand Down
3 changes: 1 addition & 2 deletions site/src/content/docs/start/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ import { Steps } from '@astrojs/starlight/components';
| --- | --- | --- |
| release | `vX.Y.Z` ([последний](https://github.com/getmikan/Citrus/releases/latest)) | Стабильные версии. |
| Prerelease-main | [`Prerelease-main`](https://github.com/getmikan/Citrus/releases/tag/Prerelease-main) | Сборка ветки `main`. |
| Prerelease-dev | [`Prerelease-dev`](https://github.com/getmikan/Citrus/releases/tag/Prerelease-dev) | Сборка ветки `dev`, самые свежие изменения. |

В пререлизах вместо версии стоят ветка и коммит, например `citrus-linux-arm64-dev-1a2b3c4.gz`.
В пререлизах вместо версии стоят ветка и коммит, например `citrus-linux-arm64-main-1a2b3c4.gz`. Ветка `dev` проходит тесты, но не собирается в пакеты; чтобы попробовать её, [соберите ядро из исходников](#собрать-из-исходников).

- **Linux, macOS, FreeBSD:** `.gz` с одним бинарником. Для Linux есть ещё `.deb`, `.rpm` и `.pkg.tar.zst`.
- **Windows:** `.zip` с `citrus-windows-<arch>.exe`.
Expand Down
94 changes: 94 additions & 0 deletions site/src/content/news/en/post-quantum-reality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---
title: Post-quantum REALITY, faster XHTTP through CDNs, and a protocol cleanup
description: Merged into dev — post-quantum REALITY on the client and server, faster packet-up through CDNs, legacy protocols removed, a rejected-auth hook and race fixes.
date: 2026-10-12
---

Everything below is merged into the `dev` branch but is not in a release or prerelease yet. `dev` is no longer packaged as `Prerelease-dev`, so for now the only way to try it is to [build the core from source](/Citrus/en/start/getting-started/#build-from-source) on the `dev` branch.

## Post-quantum REALITY ([#8](https://github.com/getmikan/Citrus/pull/8), [#10](https://github.com/getmikan/Citrus/pull/10))

Since Xray 26.9.8, a REALITY server silently drops any ClientHello without an X25519MLKEM768 key share placed before X25519, so earlier Citrus could not connect to current Xray servers.

**Client (`reality-opts`)**

- X25519MLKEM768 is on by default. `support-x25519mlkem768: false` sends the classical hello for old servers. Fingerprints without ML-KEM (ios, edge, randomized and others) get the key share added.
- `client-version`: the Xray version the client reports to the server. Defaults to `26.10.10`, instead of the hard-coded `1.8.2`, so servers with `minClientVer` accept it.
- `mldsa65-verify`: checks the ML-DSA-65 signature in the temporary certificate, like Xray's `mldsa65Verify` (`pqv` in share links).
- `client-fingerprint: firefox` and `safari` now send the real Firefox 148 and Safari 26.3 hellos from our [getmikan/utls](https://github.com/getmikan/utls) fork. Xray names such as `hellofirefox_148`, `hellosafari_26_3` and `hellochrome_131` are accepted too.

```yaml
proxies:
- name: vless-reality-vision
type: vless
server: server
port: 443
uuid: uuid
network: tcp
tls: true
flow: xtls-rprx-vision
servername: www.microsoft.com
client-fingerprint: chrome
reality-opts:
public-key: xxx
short-id: xxx
# support-x25519mlkem768: true # default; false only for old servers
# client-version: 26.10.10 # default
# mldsa65-verify: xxx # ML-DSA-65 public key (pqv)
```

**Server (`reality-config` on inbounds)**

- `mldsa65-seed`: signs the temporary certificate with ML-DSA-65, like Xray's `mldsa65Seed`. The `dest` certificate chain must be at least about 3.5 KB, or the signature does not fit and the handshake fails. Xray has the same limit.
- `require-x25519mlkem768`: only accept clients with X25519MLKEM768; the rest fall back to `dest`.
- `min-client-ver` and `max-client-ver`: the accepted range of client versions.

```yaml
listeners:
- name: vless-in
type: vless
port: 443
users:
- username: 1
uuid: uuid
flow: xtls-rprx-vision
reality-config:
dest: test.com:443
private-key: xxx # citrus generate reality-keypair
short-id:
- 0123456789abcdef
server-names:
- test.com
# max-time-difference: 60000 # milliseconds
# mldsa65-seed: xxx # xray mldsa65
# require-x25519mlkem768: true
# min-client-ver: 26.9.8
# max-client-ver: 26.10.10
```

Live-tested against Xray 26.10.10 (VLESS + Vision + REALITY) in both directions, a Citrus client to an Xray server and an Xray client to a Citrus server, with and without ML-DSA-65. A wrong key is rejected.

**Behaviour change.** `max-time-difference` is now in milliseconds, like Xray's `maxTimeDiff`. It used to be read as microseconds, so a value copied from an Xray config allowed 1000 times less clock skew. If you tuned the value for the old unit, divide it by 1000.

Every key is described in the [config reference](https://github.com/getmikan/Citrus/blob/dev/docs/config.yaml).

## XHTTP through CDNs ([#9](https://github.com/getmikan/Citrus/pull/9))

- In `packet-up` mode the next POST no longer waits for the previous response, as in Xray. Through a CDN each POST used to cost a full client → CDN → origin round trip, so upload was bound by latency. In a live test against Xray 26.10.10 a packet-up request took 0.4 s instead of 5.4 s. Over HTTP/1.1 responses are still awaited.
- `x-padding-bytes: "0-0"` now means Xray's default padding (100–1000 bytes) instead of none.
- A `path` with a query, such as `/xh?ed=2048`, is sent as a path and a query, as in Xray, instead of an escaped `%3F` inside the path.

## Legacy protocols removed ([#7](https://github.com/getmikan/Citrus/pull/7))

ShadowsocksR, Hysteria v1, TUIC v4, Shadowsocks stream ciphers (rc4-md5, aes-ctr/cfb, chacha20 and others) and v2ray-plugin are gone. Shadowsocks accepts only `none`, AEAD and `2022-blake3-*`. VMess stays for now.

- In a proxy provider such a node is skipped with a warning, and the rest of the subscription loads.
- In the main config it is an error with a clear message, for example "TUIC v4 is no longer supported, use uuid/password (v5)".

## Rejected-auth journal ([#5](https://github.com/getmikan/Citrus/pull/5))

The `component/authevent` package reports failed logins on TrustTunnel, REALITY, AnyTLS, VLESS, Trojan, TUIC v5, Hysteria2 and Sudoku inbounds: protocol, addresses and reason, never credentials. It is the core side of a journal of rejected requests in the panel. Events go through a queue and never slow down the handshake.

## Data races in Vision and AnyTLS ([#11](https://github.com/getmikan/Citrus/pull/11))

Fixed the data races `go test -race` found in the XTLS Vision filter and reader and in the AnyTLS stream. After the first packets, the Vision hot path costs one atomic load.
94 changes: 94 additions & 0 deletions site/src/content/news/ru/post-quantum-reality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---
title: Пост-квантовый REALITY, быстрый XHTTP через CDN и чистка протоколов
description: В dev влиты пост-квантовый REALITY на клиенте и сервере, ускорение packet-up через CDN, удаление устаревших протоколов, хук отклонённой авторизации и исправление гонок.
date: 2026-10-12
---

Всё ниже уже влито в ветку `dev`, но ещё не вышло ни в релиз, ни в пререлиз. `dev` больше не собирается в `Prerelease-dev`: попробовать изменения сейчас можно, только [собрав ядро из исходников](/Citrus/start/getting-started/#собрать-из-исходников) ветки `dev`.

## Пост-квантовый REALITY ([#8](https://github.com/getmikan/Citrus/pull/8), [#10](https://github.com/getmikan/Citrus/pull/10))

Начиная с Xray 26.9.8 сервер REALITY молча отбрасывает ClientHello без key share X25519MLKEM768 перед X25519. Поэтому прежний Citrus не мог подключиться к актуальным серверам Xray.

**Клиент (`reality-opts`)**

- X25519MLKEM768 включён по умолчанию. `support-x25519mlkem768: false` возвращает классический hello для старых серверов. Отпечаткам без ML-KEM (ios, edge, randomized и другим) key share добавляется автоматически.
- `client-version`: версия Xray, которую клиент сообщает серверу. По умолчанию `26.10.10`, раньше было зашито `1.8.2`. Это нужно для серверов с `minClientVer`.
- `mldsa65-verify`: проверка подписи ML-DSA-65 во временном сертификате, аналог `mldsa65Verify` в Xray (параметр `pqv` в ссылках).
- `client-fingerprint: firefox` и `safari` теперь отдают настоящие hello Firefox 148 и Safari 26.3 из нашего форка [getmikan/utls](https://github.com/getmikan/utls). Принимаются и имена Xray: `hellofirefox_148`, `hellosafari_26_3`, `hellochrome_131`.

```yaml
proxies:
- name: vless-reality-vision
type: vless
server: server
port: 443
uuid: uuid
network: tcp
tls: true
flow: xtls-rprx-vision
servername: www.microsoft.com
client-fingerprint: chrome
reality-opts:
public-key: xxx
short-id: xxx
# support-x25519mlkem768: true # по умолчанию; false только для старых серверов
# client-version: 26.10.10 # по умолчанию
# mldsa65-verify: xxx # публичный ключ ML-DSA-65 (pqv)
```

**Сервер (`reality-config` у входящих)**

- `mldsa65-seed`: подпись временного сертификата ML-DSA-65, аналог `mldsa65Seed` в Xray. Цепочка сертификатов `dest` должна быть не короче примерно 3,5 КБ, иначе подпись не помещается и рукопожатие не проходит. У Xray то же ограничение.
- `require-x25519mlkem768`: принимать только клиентов с X25519MLKEM768, остальные уходят на `dest`.
- `min-client-ver` и `max-client-ver`: допустимый диапазон версий клиента.

```yaml
listeners:
- name: vless-in
type: vless
port: 443
users:
- username: 1
uuid: uuid
flow: xtls-rprx-vision
reality-config:
dest: test.com:443
private-key: xxx # citrus generate reality-keypair
short-id:
- 0123456789abcdef
server-names:
- test.com
# max-time-difference: 60000 # миллисекунды
# mldsa65-seed: xxx # xray mldsa65
# require-x25519mlkem768: true
# min-client-ver: 26.9.8
# max-client-ver: 26.10.10
```

Проверено вживую против Xray 26.10.10 (VLESS + Vision + REALITY) в обе стороны: клиент Citrus к серверу Xray и клиент Xray к серверу Citrus, с подписью ML-DSA-65 и без неё. Неверный ключ отклоняется.

**Изменение поведения.** `max-time-difference` теперь в миллисекундах, как `maxTimeDiff` в Xray. Раньше значение читалось в микросекундах, и число, скопированное из конфига Xray, допускало расхождение часов в 1000 раз меньше. Если вы подбирали значение под старые единицы, разделите его на 1000.

Все ключи описаны в [справочнике конфига](https://github.com/getmikan/Citrus/blob/dev/docs/config.yaml).

## XHTTP через CDN ([#9](https://github.com/getmikan/Citrus/pull/9))

- В режиме `packet-up` следующий POST больше не ждёт ответа на предыдущий, как и в Xray. Через CDN каждый POST раньше стоил полный круг клиент → CDN → сервер, и отдача упиралась в задержку. В живом тесте против Xray 26.10.10 запрос через packet-up занял 0,4 с вместо 5,4 с. Через HTTP/1.1 ответы по-прежнему ждутся.
- `x-padding-bytes: "0-0"` теперь значит паддинг по умолчанию Xray (100–1000 байт), а не его отсутствие.
- `path` с запросом, например `/xh?ed=2048`, отправляется как путь и query, как в Xray, а не как экранированный `%3F` внутри пути.

## Удалены устаревшие протоколы ([#7](https://github.com/getmikan/Citrus/pull/7))

Удалены ShadowsocksR, Hysteria v1, TUIC v4, потоковые шифры Shadowsocks (rc4-md5, aes-ctr/cfb, chacha20 и другие) и v2ray-plugin. Shadowsocks принимает только `none`, AEAD и `2022-blake3-*`. VMess пока остаётся.

- В провайдерах прокси такой узел пропускается с предупреждением, остальная подписка загружается.
- В основном конфиге это ошибка с понятным текстом, например «TUIC v4 is no longer supported, use uuid/password (v5)».

## Журнал отклонённой авторизации ([#5](https://github.com/getmikan/Citrus/pull/5))

Пакет `component/authevent` сообщает о неудачных попытках входа на входящих TrustTunnel, REALITY, AnyTLS, VLESS, Trojan, TUIC v5, Hysteria2 и Sudoku: протокол, адреса и причину, без учётных данных. Это основа для журнала отклонённых запросов в панели. События идут через очередь и не замедляют рукопожатие.

## Гонки данных в Vision и AnyTLS ([#11](https://github.com/getmikan/Citrus/pull/11))

Исправлены гонки данных в фильтре и чтении XTLS Vision и в потоке AnyTLS, которые находил `go test -race`. Горячий путь Vision после первых пакетов стоит одну атомарную загрузку.
8 changes: 4 additions & 4 deletions site/src/landing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ export const strings = {
title: 'Скачать',
lead: 'Готовые сборки лежат в релизах на GitHub. Файлы называются',
naming: 'citrus-<os>-<arch>-<версия>',
naming2: ': в релизе версия — это тег (citrus-linux-arm64-v1.2.3.gz), в пререлизе — ветка и коммит (citrus-linux-arm64-dev-1a2b3c4.gz). Для Windows это .zip, для Linux есть ещё .deb, .rpm и .pkg.tar.zst.',
naming2: ': в релизе версия — это тег (citrus-linux-arm64-v1.2.3.gz), в пререлизе — ветка и коммит (citrus-linux-arm64-main-1a2b3c4.gz). Для Windows это .zip, для Linux есть ещё .deb, .rpm и .pkg.tar.zst.',
headers: ['Канал', 'Откуда', 'Что это'],
channels: [
['release', 'Последний тег vX.Y.Z', 'Стабильные версии.'],
['Prerelease-main', 'Ветка main', 'Сборка с каждого слияния в main.'],
],
],
arch: 'Файл amd64 собран под x86-64-v3 (Intel Haswell, AMD Excavator и новее); для старых берите amd64-compatible (v1) или amd64-v2. Есть также arm64, armv5–v7, 386, mips, riscv64, loong64, s390x и другие.',
button: 'Все релизы',
docs: 'Как запустить',
Expand Down Expand Up @@ -164,12 +164,12 @@ export const strings = {
title: 'Download',
lead: 'Builds are published as GitHub releases. Files are named',
naming: 'citrus-<os>-<arch>-<version>',
naming2: ': in a release the version is the tag (citrus-linux-arm64-v1.2.3.gz), in a prerelease the branch and commit (citrus-linux-arm64-dev-1a2b3c4.gz). Windows builds are .zip; Linux also gets .deb, .rpm and .pkg.tar.zst.',
naming2: ': in a release the version is the tag (citrus-linux-arm64-v1.2.3.gz), in a prerelease the branch and commit (citrus-linux-arm64-main-1a2b3c4.gz). Windows builds are .zip; Linux also gets .deb, .rpm and .pkg.tar.zst.',
headers: ['Channel', 'Built from', 'What it is'],
channels: [
['release', 'The latest vX.Y.Z tag', 'Stable versions.'],
['Prerelease-main', 'The main branch', 'A build of every merge into main.'],
],
],
arch: 'The amd64 file targets x86-64-v3 (Intel Haswell, AMD Excavator and newer); for older ones take amd64-compatible (v1) or amd64-v2. There are also arm64, armv5–v7, 386, mips, riscv64, loong64, s390x and more.',
button: 'All releases',
docs: 'How to run it',
Expand Down
Loading