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

[Wiki] non-sip003 plugin usage manual merge request #1971

Closed
chenshaoju opened this issue Aug 18, 2018 · 9 comments
Closed

[Wiki] non-sip003 plugin usage manual merge request #1971

chenshaoju opened this issue Aug 18, 2018 · 9 comments
Assignees

Comments

@chenshaoju
Copy link
Collaborator

chenshaoju commented Aug 18, 2018

I wrote a manual for non-sip003 standard plugin usage.

Please merge to the wiki page.

Preview: English Chinese

Sourcecode: https://gist.github.com/chenshaoju/9796bb4783b81f64d718065801b085ca

No copyright, Feel free to use or modify it.

Thanks.

@ghost
Copy link

ghost commented Aug 18, 2018

@chenshaoju have you tried this? if not, please test it!

@chenshaoju
Copy link
Collaborator Author

@colalan I used plugin is SIP003 standard, so I only tested with cmd.exe, use c:\windows\system32\cmd.exe and /c echo %SS_REMOTE_HOST% >d:\test.txt to test environment variables is working or not.

I will try kctpun as sample.

@ghost
Copy link

ghost commented Aug 18, 2018

@chenshaoju please use non-sip003 test

@chenshaoju
Copy link
Collaborator Author

chenshaoju commented Aug 18, 2018

Interesting, If using Shadowsocks for Windows, it will not work, kcptun process will keep restart.

But if I set the same config with environment variables manually, It can work.

I think the document is all right, but some wrong in this process.

For cautiously, I have changed the title.

@chenshaoju chenshaoju changed the title [Wiki] non-sip003 plugin usage manual merge request [Wiki] [HOLD ON] non-sip003 plugin usage manual merge request Aug 18, 2018
@chenshaoju
Copy link
Collaborator Author

chenshaoju commented Aug 18, 2018

I think I know what happens here.

Shadowsocks for Windows directly give these environment variables name to the plugin.
image

Unfortunately, It's will not work, the plugin usual is unable to process these environment variables.

But these environment variables can pass by cmd.exe, If I set Plugin Program is:
C:\Windows\system32\cmd.exe

And set Plugin Arguments is:
/c D:\Shadowsocks\client_windows_amd64.exe -l %SS_LOCAL_HOST%:%SS_LOCAL_PORT% -r %SS_REMOTE_HOST%:%SS_REMOTE_PORT% --key 123456 --crypt salsa20 --mode fast2

It's can work.
image

#1818

@ghost
Copy link

ghost commented Aug 19, 2018

大概知道为什么有问题了,简单的说,cmd才会解释环境变量。

@chenshaoju chenshaoju changed the title [Wiki] [HOLD ON] non-sip003 plugin usage manual merge request [Wiki] non-sip003 plugin usage manual merge request Aug 20, 2018
@celeron533
Copy link
Contributor

Will be merged in next release

@celeron533 celeron533 self-assigned this Sep 1, 2018
@celeron533
Copy link
Contributor

Added to:

使用非SIP003规范的插件

Working with non SIP003 standard Plugin

@chenshaoju
Copy link
Collaborator Author

Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants