snail007 / goproxy-ss-plugin-android

goproxy安卓全局代理,ss goproxy安卓插件, goproxy : https://github.com/snail007/goproxy
71 stars 40 forks source link

Http Request modify goproxy-ss-plugin-android #6

Open ingnelson opened 4 years ago

ingnelson commented 4 years ago

Hello.

I need to modify the HTTP request that send goproxy-ssplugin-android.

shadowsocks with your plugin send this HTTP request :

GET / HTTP/1.1\r\n
Host: 172.245.22.211:8800\r\n
Upgrade: websocket\r\n
Connection: Upgrade\r\n
Sec-WebSocket-Version: 13\r\n
Sec-WebSocket-Key: 9Zy1NPgIxeqRytqnhSi6Yw==\r\n\r\n

I need to modify the last HTTP HEADER ( Sec-WebSocket-Key: 9Zy1NPgIxeqRytqnhSi6Yw==\r\n\r\n )

I need to change \r\n\r\n to this \r\n ٌُُُُُُّّّّْْْْْْْْْْْْْْْْْْ\r\n\r\n (this has non-ASCII characters ), this non-ANSCII create the trick to bypass my ISP firewall.

Where is the file where i can modify this last HTTP HEADER ??

I am going to wait your answer, because i really need it.

snail007 commented 4 years ago

there's no that feature.

ingnelson commented 4 years ago

@snail007 so whole http request is code on the shadowsocks app and it is not inside your plug-in ?

snail007 commented 4 years ago

correct