[PR #115] [MERGED] Accept and ignore 2 parameters passed by shadowsocks-android in shadowsocks plugin mode. #271

Closed
opened 2026-02-26 12:34:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cbeuw/Cloak/pull/115
Author: @notsure2
Created: 5/27/2020
Status: Merged
Merged: 5/27/2020
Merged by: @cbeuw

Base: masterHead: ignore-extra-parameters-plugin-mode


📝 Commits (1)

  • c7b811f Accept and ignore 2 parameters passed by shadowsocks-android in shadowsocks plugin mode.

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 cmd/ck-client/ck-client.go (+4 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cbeuw/Cloak/pull/115 **Author:** [@notsure2](https://github.com/notsure2) **Created:** 5/27/2020 **Status:** ✅ Merged **Merged:** 5/27/2020 **Merged by:** [@cbeuw](https://github.com/cbeuw) **Base:** `master` ← **Head:** `ignore-extra-parameters-plugin-mode` --- ### 📝 Commits (1) - [`c7b811f`](https://github.com/cbeuw/Cloak/commit/c7b811f9c14aa6e85385cdf93ebaa280f901f5a7) Accept and ignore 2 parameters passed by shadowsocks-android in shadowsocks plugin mode. ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/ck-client/ck-client.go` (+4 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 12:34:27 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#271
No description provided.