-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Feature proposal] Server disable in Extended multiple server configuration #394
Comments
Also, I personally know some Rust so I'm happy to contribute via a PR. |
+1. The feature would be helpful for me as well. |
If possible, set the specified server as the default, and use other servers when it fails. This scenario is that the network speed is fast, but the speed is low, so it can’t be optimized. You can only delete the server. |
Don't worry I got you covered. I actually intend to submit another feature proposal about customisation options for the load balancer, which will be a superset of the feature you are describing. |
I am using json5 in this project. :P . So yeah, you can use comments. BTW, I personally agree with the optional |
Ahah, tricky. So technically the object keys don't have to be quoted, and arrays can have trailing commas too? |
Technically, yeah. But that is not a standard basic format of shadowsocks, so I am not guranteed that it will not be changed in the future. |
* Lazy server disable implementation See #394 * Don't use filter & collect * Updated README * Example in Configuration section
Merged. |
可以设置1、0来代表true、false吗? |
Why. |
因为有些三方库,如果设置一个属性为true,他会用1来表示,反之亦然。 |
Rationale
shadowsocks-rust
supports creating and/or connecting to multiple servers within one configuration file, which is great.However, sometimes there arises the need, whether during testing or deployment, for us to temporarily disable one or more servers. Example scenarios include:
Ideally, the user should be able to simply block-comment out a profile to disable it. Unfortunately, JSON format does not have support for comments, which means the user would need to:
... Neither of which is convenient.
What I am envisioning
Wouldn't it be nice, if you can simply add
"disable": true
to a server profile and turn it off?Something like this:
I think it would be a good "quality of life" improvement while being not too complicated to implement.
The text was updated successfully, but these errors were encountered: