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

Accept and ignore 2 parameters passed by shadowsocks-android in shadowsocks plugin mode. #115

Merged
merged 1 commit into from
May 27, 2020

Conversation

notsure2
Copy link
Contributor

Since my previous pull request that allowed parameter parsing in shadowsocks mode, compiling latest Cloak-Android gave a non-working binary when used with shadowsocks-android.

In case of VPN mode and fast-open, shadowsocks-android intentionally passes up to 2 extra parameters (-V and --fast-open) to the SIP003 plugin. Since golang flag does not ignore unknown flags, it causes the plugin to start and fail immediately.

This pull request lets cloak accept and ignore those 2 parameters safely in shadowsocks mode.

@cbeuw cbeuw merged commit aff5348 into cbeuw:master May 27, 2020
@notsure2 notsure2 deleted the ignore-extra-parameters-plugin-mode branch May 27, 2020 00:12
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.

None yet

2 participants