Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feauture Request] Adding the ability to manage Auto Update option through a specific URL Scheme #2140

Open
4 of 5 tasks
neerro opened this issue Sep 25, 2024 · 0 comments
Open
4 of 5 tasks

Comments

@neerro
Copy link

neerro commented Sep 25, 2024

Operating system

Android

System version

anyVersion & anyTypeOfDevices

Installation type

Others

If you are using a graphical client, please provide the version of the client.

No response

Version

No response

Description

Dear @nekohasekai,

I would like to propose an enhancement to the application’s functionality that will allow users to manage auto-update parameters when importing profiles via remote links in the format sing-box://import-remote-profile?url=urlEncodedURL#urlEncodedName.

Currently, the ability to modify auto-update parameters (enable/disable and interval) is only available through the user interface. This limits user flexibility as they cannot predefine these parameters in the link.

Proposed Changes:
Support for parameters in the URL:

Implement the ability to pass auto-update parameters through the URL. For example:
Auto Update Enabled
sing-box://import-remote-profile?url=urlEncodedURL&autoUpdate=true&autoUpdateInterval=60#urlEncodedName
or it may be leave as it is: sing-box://import-remote-profile?url=urlEncodedURL#urlEncodedName.
Auto UpdateDisabled
sing-box://import-remote-profile?url=urlEncodedURL&autoUpdate=false&autoUpdateInterval=0#urlEncodedName

Modifying profile handling logic:

In the method that handles profile imports, add logic to extract the autoUpdate and interval parameters from the URL.
Set the corresponding values in the TypedProfile object.

This will add flexibility and simplify the use of the application for users who prefer to set up their profiles in advance.

Reproduction

There is no error. It is a Feauture Request.

Logs

No response

Supporter

Integrity requirements

  • I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
  • I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
  • I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
@neerro neerro changed the title [Feauture Request] Adding the ability to manage Auto Update through remote links [Feauture Request] Adding the ability to manage Auto Update option through remote links Sep 25, 2024
@neerro neerro changed the title [Feauture Request] Adding the ability to manage Auto Update option through remote links [Feauture Request] Adding the ability to manage Auto Update option through a specific URL Scheme Sep 25, 2024
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

No branches or pull requests

1 participant