Skip to content

Added profile-update-interval applying logic#331

Open
sedyh wants to merge 1 commit intoKaringX:mainfrom
sedyh:main
Open

Added profile-update-interval applying logic#331
sedyh wants to merge 1 commit intoKaringX:mainfrom
sedyh:main

Conversation

@sedyh
Copy link

@sedyh sedyh commented Mar 1, 2026

Apply profile-update-interval header to auto-update logic

The profile-update-interval response header was already being parsed on add, but the stored value was never actually used. This wires it up so the server-suggested interval takes effect, matching the format that is similar to Clash Verge Rev.

Changes:

  • clone now copies updateIntervalByProfile (was missing).
  • update re-reads profile-update-interval header on every update, not only on add.
  • updateByTicker uses server interval if available, falls back to user interval.

I can't build the app to check it on macos/ios since I don't have the libclash-vpn-service dependency and it is not public.

@sedyh
Copy link
Author

sedyh commented Mar 2, 2026

I guess it should solve #324 but I don't have the way to test it.

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