Equim-chan / h2s

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

配置文件域验证问题 #2

Closed 5high closed 4 years ago

5high commented 5 years ago

{ "bind": "127.0.0.1:8088", "upstreams": [{ "address": "10.14.1.10:8080", "username": "domain### m", "password": "password" }], "timeout": "20s", "retries": 3 }

使用这个配置文件会报一下错误

2018/07/25 16:20:54.767080 parse config: invalid character 'm' in string escape code

因为用户名第一位是m开头

5high commented 5 years ago

OMG,domian\m自动变成###

Equim-chan commented 5 years ago

试一下 "username": "domain\\m"