Equim-chan / h2s

:electric_plug: A simple tool that wraps HTTPS proxies into a SOCKS5 proxy.
MIT License
122 stars 19 forks source link

tlsConfig 与示例json配置文件的字段名不同 #7

Closed marskid closed 5 years ago

marskid commented 5 years ago

代码中 https://github.com/Equim-chan/h2s/blob/8b73394c644c856130668e602279f2dc4d57c3ca/h2s.go#L30

与示例中

{
  "bind": "127.0.0.1:1080",
  "upstreams": [
    {
      "address": "proxy.example.com:443",
      "username": "user",
      "password": "pwd",
      "tls": {
         ......
       }
    }
  ],
 "accounts": [{
    "username": "test server",
    "password": "test"
  }],
  "timeout": "20s",
  "retries": 3
}

tls字段不同,测试必须写为tlsConfig才能识别