Skip to content

Conversation

@RongDuJiKsp
Copy link
Contributor

Description

Added support for the configuration item remote_config_encoding. When the configuration item is "plain", it will not be processed. When the configuration item is "base64", it will attempt to base64 decoding of the subscription address.

Linked Issues

fixes #162

Additional context

This is my first PR.I tested my code ,but I don't know the workflow. If I am at fault, please correct me :)

@RongDuJiKsp RongDuJiKsp changed the title Added support for " remote_config_encoding",fixes #62 Added support for " remote_config_encoding",fixes #162 Sep 7, 2024
@spencerwooo
Copy link
Owner

spencerwooo commented Sep 11, 2024

Thank you for this contribution! I will need some time to review your changes. In the meantime, please adjust your PR according to the format/style checks in the CI. ❤️

@spencerwooo spencerwooo changed the title Added support for " remote_config_encoding",fixes #162 Added support for remote_config_encoding, fixes #162 Sep 11, 2024
@spencerwooo spencerwooo changed the title Added support for remote_config_encoding, fixes #162 Added support for base64 encoded remote config, fixes #162 Sep 18, 2024
Copy link
Owner

@spencerwooo spencerwooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering the base64 file decoding fails silently and keeps the original file intact, I would prefer removing the requirement for enabling the decoding via remote_config_encoding configuration option, and always apply the base64 decoding regardless of the file format.

Could you please remove any related logic and update this PR? Thanks. ❤️

@spencerwooo spencerwooo merged commit 0a89322 into spencerwooo:main Sep 19, 2024
@spencerwooo
Copy link
Owner

Thanks again for the effort 🤩

@RongDuJiKsp
Copy link
Contributor Author

❤️

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.

[Subscription] Support decoding after fetching config.

2 participants