nojsja / shadowsocks-electron

Shadowsocks GUI application made for Ubuntu / Mac / Win users and powered by Electron.
GNU General Public License v3.0
328 stars 57 forks source link

IPv6 support #11

Open skyfxc opened 2 years ago

skyfxc commented 2 years ago

env

ubuntu 20.04, snap version app

problem description

when connecting IPv6 ss server (domain or IP), can not use either pac mode or global mode

reason

ss-local listen to ::1 as local socks server but proxy server host is set to 127.0.0.1

  1. when starting shadowsocks-libev ss-local, if you do not assign local socks server host by "-b" option, it will automatically listen localhost according to server host, 127.0.0.1 for IPv4 server and ::1 for IPv6 server. (I guess the reason is to avoid fatal exception of binding failure due to assign address failure)
  2. for PAC mode or global mode, proxy server is always 127.0.0.1

    possible solution

    using placeholder for proxy server host, just like "__PORT__" for proxy server port, from user provided config or socks server host detection

sorry for open an issue rather than pr, as not good at electron development (ಥ_ಥ)

nojsja commented 2 years ago

@skyfxc Very clear description, the problem will be solved in the next version.

nojsja commented 2 years ago

@skyfxc v1.2.0 has been released.