Skip to content

Fix ForkOP server lists, auto policies and confirmed VPN selection (2.5.20) - #3

Merged
RichkovGit merged 7 commits into
mainfrom
codex/fix-vpn-selection
Oct 19, 2026
Merged

RichkovGit merged 7 commits into
mainfrom
codex/fix-vpn-selection

Conversation

@RichkovGit

@RichkovGit RichkovGit commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

The ForkOP screen currently invents four auto groups and sample servers/latencies, and treats whichever selector happens to be parsed last as the active server. This displays the wrong policy and can report a successful switch after failed commands.

Read actual groups, display names, raw tags and section selectors from Sing-box, Clash runtime state and all ForkOP cache documents, matching upstream ushan0v/forkop cache metadata. Hide infrastructure outbounds, distinguish the selected section policy from its nested active path, use real timestamped measurements and expose only supported manual selections. Resolve the real parent selector and confirm its new now value after switching; remove optimistic UI state, hard-coded router addresses and fake UCI writes. Provider/protocol filters follow the current router data.

Adds shared Android/desktop topology fixtures and ten portable regression tests for metadata, routing roots, cycles, large lists, timestamps, errors and read-back confirmation. Windows tests include these same cases. Candidate version: 2.5.20; existing workflows produce the installer and portable ZIP.

The companion mobile/Linux changes are in RichkovGit/OpenWrtStudio-Mobile, branch codex/fix-vpn-selection. Linux uses that Flutter GUI, with AppImage/tar packaging and distro smoke tests. Live router and Windows UI verification completed on 2026-10-19; original VPN selectors and LuCI theme restored.

Validation at 13fb5a0: Windows CI passed 128 tests (5 opt-in live-router tests skipped), and the portable core suite passed all 10 tests. CI run · Windows installer and portable artifacts. Companion mobile/Linux PR #1.

Hardware validation — 2026-10-19

Проверка VPN на реальном оборудовании — 19.10.2026

Проверены Windows 2.5.20 и Android 2.5.24 на Cudy WR3000S v1 / OpenWrt 25.12.5 с ForkOP и sing-box. Получено 27 групп и 223 сервера из реального роутера.

  • Windows: ручной выбор узла через интерфейс подтверждён отдельным чтением Clash API роутера. Фильтры провайдера/протокола формируются из узлов; выбранный провайдер сохраняется после обновления.
  • Интеграционный тест сервиса: автоматическая политика и ручной узел подтверждены отдельным чтением API; несуществующая цель отклонена без изменения селекторов; исходные значения восстановлены в finally.
  • Android: переход на автоматическую группу, ручной узел и другую группу быстрым выбором подтверждён отдельными SSH-чтениями API. Список участников URLTest открывается как автовыбор.
  • APK установлен поверх 2.5.23 с сохранением профиля и подключением к роутеру. Подпись совпадает с установленной версией; arm64 versionCode = 6524.
  • После испытаний оба изменяемых Selector восстановлены точно по исходному снимку (0 расхождений). Тема LuCI Proton2025 сохранена и проверена через UCI.

Проверки: Windows 128 passed / 6 skipped; portable core 10 passed / 1 skipped; opt-in live VPN 1 passed; read-only router probes 2 passed; Flutter analyze без замечаний, 163 tests passed. Пропуски offline-прогона относятся к интеграциям, требующим явного включения.

Исправлена блокировка тестов Dashboard при наличии WPF Application без работающего Dispatcher: тесты передают синхронный диспетчер, приложение сохраняет штатный UI Dispatcher.

Пределы проверки: проверялся выбор маршрута через состояние роутера, а не полный захват пользовательского трафика; все 223 узла по отдельности не испытывались. WireGuard/AmneziaWG и новые Linux-пакеты в этом аппаратном прогоне не проверялись. Ранее выполненные Linux-проверки PR не заменяются этим отчётом.

Снимки конфигурации и данные доступа в репозиторий не включены. Для повторения live-теста нужны OPENWRT_LIVE_VPN_SWITCH=1, OPENWRT_TEST_HOST и OPENWRT_TEST_PASSWORD; запуск временно меняет реальный VPN и восстанавливает исходный выбор.

Фильтр серверов Windows

@RichkovGit
RichkovGit marked this pull request as ready for review October 19, 2026 10:00
@RichkovGit
RichkovGit merged commit 28c37ef into main Oct 19, 2026
4 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T10:01:39.650869Z 7f0d6d3 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant