Skip to content

Fix parse profile-update-interval http header#732

Merged
wwqgtxx merged 1 commit into
MetaCubeX:mainfrom
AlexFozor:main
May 12, 2026
Merged

Fix parse profile-update-interval http header#732
wwqgtxx merged 1 commit into
MetaCubeX:mainfrom
AlexFozor:main

Conversation

@AlexFozor
Copy link
Copy Markdown

Currently, when importing a profile via the clash(meta)://install-config intent, the application hardcodes the update interval to 0. It also ignores the standard Profile-Update-Interval HTTP header, leaving auto-updates disabled by default.

Fixes:

  • Parse Profile-Update-Interval HTTP header (in hours) on fetch;
  • Parse update-interval URI param (in minutes) from intents;
  • Enforce a 15 min minimum bound to prevent server DDoS;
  • Safely handle malformed inputs and allow <= 0 to explicitly disable updates.

@wwqgtxx wwqgtxx merged commit a616468 into MetaCubeX:main May 12, 2026
1 check passed
ForestL18 pushed a commit to ForestL18/ClashMetaForAndroid that referenced this pull request May 13, 2026
Co-authored-by: AlexFozor <alex.fozor@ya.ru>
ForestL18 pushed a commit to ForestL18/ClashMetaForAndroid that referenced this pull request May 13, 2026
Co-authored-by: AlexFozor <alex.fozor@ya.ru>
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