cbeuw / Cloak

A censorship circumvention tool to evade detection by authoritarian state adversaries
GNU General Public License v3.0
3.42k stars 304 forks source link

Spurious symbols appear in ProxyMethod #274

Open kutukvpavel opened 3 months ago

kutukvpavel commented 3 months ago

For some reason proxyMethod field is padded with garbage during a client connection attempt. From systemd logs, when trying to connect to panel1 proxy: level=error msg="invalid proxy method" UID="..." encryptionMethod=2 proxyMethod="panel1\xc9\t\x94r\x19\x7f" remoteAddr="..." sessionId=0

I ran into this issue on both panel and shadowsocks proxies i set up. Can be easily fixed by using a long proxy name, for example, panel_longer or shadowsocks1 is sufficient. Both Linux-amd64 client and Android Shadowsocks client with Cloak plugin are affected.