Skip to content

Add resolver file import, CIDR parsing & stats #9

Merged
Hidden-Node merged 3 commits into
Hidden-Node:mainfrom
AmirrezaFarnamTaheri:main
May 7, 2026
Merged

Add resolver file import, CIDR parsing & stats #9
Hidden-Node merged 3 commits into
Hidden-Node:mainfrom
AmirrezaFarnamTaheri:main

Conversation

@AmirrezaFarnamTaheri
Copy link
Copy Markdown
Contributor

@AmirrezaFarnamTaheri AmirrezaFarnamTaheri commented May 4, 2026

  • Add support for importing resolver files and gathering resolver statistics.
  • Introduces a DB migration (v1->v2) adding resolverSourceType, resolverFileName, resolverCachedPath and resolverStatsJson to ProfileEntity.
  • Adds ResolverAnalyzer utility to parse/analyze resolver text and cached files (CIDR expansion, stats serialization, import-to-cache).

UI updates:

  • ProfilesScreen, Profile editor and SettingsScreen allow importing resolver files, show resolver stats, toggle CIDR parsing, and display scan ETA in HomeScreen/HomeStatusCards.
  • VpnService now uses imported resolver files and logs stats; ConfigGenerator and client config gain RESOLVER_CIDR_ENABLED support.
  • VpnManager tracks scan timestamps for ETA calculations.
  • MTU logging was hardened to export each working resolver only once per session (new state in client, updated logic and unit test).
  • Various strings/resources updated to support new UI flows.

Hidden-Node and others added 3 commits April 20, 2026 19:04
Add support for importing resolver files and gathering resolver statistics. Introduces a DB migration (v1->v2) adding resolverSourceType, resolverFileName, resolverCachedPath and resolverStatsJson to ProfileEntity. Adds ResolverAnalyzer utility to parse/analyze resolver text and cached files (CIDR expansion, stats serialization, import-to-cache). UI updates: ProfilesScreen, Profile editor and SettingsScreen allow importing resolver files, show resolver stats, toggle CIDR parsing, and display scan ETA in HomeScreen/HomeStatusCards. VpnService now uses imported resolver files and logs stats; ConfigGenerator and client config gain RESOLVER_CIDR_ENABLED support. VpnManager tracks scan timestamps for ETA calculations. MTU logging was hardened to export each working resolver only once per session (new state in client, updated logic and unit test). Various strings/resources updated to support new UI flows.
@Hidden-Node Hidden-Node merged commit f216ae2 into Hidden-Node:main May 7, 2026
2 checks passed
@Hidden-Node
Copy link
Copy Markdown
Owner

Hi Amirreza, thanks for your contribution.

I've reviewed the changes, and while the DNS resolver and Android fixes are great, I noticed that some modifications were made to the client core files. Since this core is shared with another project, changing it here will cause major conflicts during future updates.

Please note that for this project, contributions should be limited to the android and mobile folders only. Please avoid making any changes outside of these directories to maintain core stability.

For this reason, I've decided to revert this PR for now. Could you please submit a new PR containing only the DNS and Android UI fixes, ensuring that the core directory remains untouched?

This way, I can safely merge your improvements without breaking core compatibility. Thanks for understanding and for your hard work!

Hidden-Node added a commit that referenced this pull request May 8, 2026
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.

2 participants