增加alpn配置; 修订示例,代码;

This commit is contained in:
hahahrfool
2022-03-25 22:55:38 +08:00
parent 63682dfae4
commit 074908ecdf
7 changed files with 96 additions and 38 deletions

View File

@@ -48,7 +48,6 @@ func NewClient(dc *DialConf) (Client, error) {
if dc.TLS {
c.SetUseTLS()
e = prepareTLS_forClient(c, dc)
configCommonForClient(c, dc)
return c, e
}
@@ -243,7 +242,7 @@ func configCommon(ser ProxyCommon, cc *CommonConf) {
}
//SetAddrStr, setNetwork, setIsDial(true),setDialConf(dc), call configCommon
//SetAddrStr, setNetwork, setIsDial(true),setDialConf(dc), call configCommon(setAdvancedLayer)
func configCommonForClient(cli ProxyCommon, dc *DialConf) {
cli.setNetwork(dc.Network)
cli.setIsDial(true)