修订文档,代码;减少发布包编译的数量;修复“包头”变成“握手包”的漏洞

根据vless/trojan的协议标准,首包必须要包头和payload一起发送,而之前的vs架构分开发送了,这会导致可探测。已在本commit修复。

使用 captive.apple.com 和 http://www.msftconnecttest.com/connecttest.txt 作为测试url,而不用baidu和qq。这样在非中国国家进行测试 也可以正常了。
This commit is contained in:
hahahrfool
2022-04-16 22:25:37 +08:00
parent 8eecbacc57
commit d9f3b5d0e6
22 changed files with 327 additions and 192 deletions

View File

@@ -133,8 +133,10 @@ protocol = "direct"
},
}
tryGetHttp(client, "http://www.baidu.com", t)
tryGetHttp(client, "https://www.qq.com", t)
//tryGetHttp(client, "http://www.baidu.com", t)
//tryGetHttp(client, "https://www.qq.com", t)
tryGetHttp(client, "http://captive.apple.com", t)
tryGetHttp(client, "http://www.msftconnecttest.com/connecttest.txt", t)
}
func tryGetHttp(client *http.Client, path string, t *testing.T) {