feat: add Remnawave HWID device identification support#2091
Open
jeezft wants to merge 1 commit intohiddify:mainfrom
Open
feat: add Remnawave HWID device identification support#2091jeezft wants to merge 1 commit intohiddify:mainfrom
jeezft wants to merge 1 commit intohiddify:mainfrom
Conversation
Send device identification headers on every subscription fetch to support Remnawave panel HWID feature for device limiting. Headers sent: - x-hwid: persistent UUID (generated once, stored in SharedPreferences) - x-device-os: normalized OS name (Android, iOS, Windows, macOS, Linux) - x-ver-os: OS version string - x-device-model: device model via device_info_plus (Android/iOS/Windows/macOS) Changes: - pubspec.yaml: add device_info_plus ^10.1.0 - lib/core/app_info/device_info_provider.dart: new FutureProvider returning device model per platform - lib/core/model/app_info_entity.dart: add displayOs getter for normalized OS name - lib/core/preferences/general_preferences.dart: add hwidProvider (UUID v4, persisted) - lib/core/http_client/dio_http_client.dart: add extraHeaders param to download() and _options() - lib/features/profile/data/profile_parser.dart: pass HWID headers on subscription download Ref: https://github.com/remnawave/panel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for Remnawave panel HWID feature for device identification/limiting via subscription request headers.
Headers sent on every subscription fetch:
x-hwid— persistent UUID (generated once, stored in SharedPreferences)x-device-os— normalized OS name (Android, iOS, Windows, macOS, Linux)x-ver-os— OS version stringx-device-model— device model via device_info_plusChanges:
Non-breaking: panels that don't use HWID simply ignore the headers.