Switchyomega: 使用Socks5代理时, 如何设置用户名和密码?

Created on 29 Jul 2017  ·  3Comments  ·  Source: FelisCatus/SwitchyOmega

使用Socks5代理时, 如何设置用户名和密码?


SwitchyOmega 2.4.6
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Most helpful comment

All 3 comments

可以结合cow/meow使用

@tldzyx ,
Socks5 似乎不是这种写法。
你上文的PROXY应该只是指向一般的http代理。

四种代理参考下文:

        switch (scheme) {
          case "http":
            return "PROXY 127.0.0.1:80";

          case "https":
            return "HTTPS 127.0.0.1:443";

          case "ftp":
            return "SOCKS 127.0.0.1:1080";

          default:
            return "SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080";
        }

http --> PROXY
https --> HTTPS
socks4 --> SOCKS
socks5 --> SOCKS5

Was this page helpful?
0 / 5 - 0 ratings