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

fix(subparser): SIP008 decoder #367

Merged
merged 1 commit into from
Sep 1, 2021
Merged

Conversation

cubercsl
Copy link
Contributor

fix #366

The SIP008 subscription can not be converted correctly when the member "remarks" does not exist.

The code here may cause the SIP008 subscription can not be converted correctly.

const char *section = json.HasMember("version") && json.HasMember("remarks") && json.HasMember("servers") ? "servers" : "configs";
if(!json.HasMember(section))
return;

https://shadowsocks.org/en/wiki/SIP008-Online-Configuration-Delivery.html

fix tindy2013#366

The SIP008 subscription can not be converted correctly when the member "remarks" does not exist.
@tindy2013
Copy link
Owner

Thanks for this PR.

@tindy2013 tindy2013 merged commit bc0a8dc into tindy2013:master Sep 1, 2021
@cubercsl cubercsl deleted the patch-1 branch September 1, 2021 17:16
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.

功能:SIP008转SIP002
2 participants