使得trojan-go支持一种与hysteria2相同的http验证方式#557
Open
Jabberwocky238 wants to merge 10 commits into
Open
Conversation
|
Awesome! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
实例配置,server.json
{
"run_type": "server",
"local_addr": "127.0.0.1",
"local_port": 3567,
"remote_addr": "1.1.1.1",
"remote_port": 80,
"log_level": 3,
"password": [
"password部分在加密之后大概率不会撞车所以不重要"
],
"router": {
"enabled": false
},
"http": {
"enabled": true,
"api_url": "https://cf1.enzyme.cloud/api/proxy/auth",
"timeout": 5
}
}
他会POST一个类似
{
"addr": "用户端IP,目前写死为0.0.0.0",
"auth": "客户端password的sha224",
"tx": "0"
}
服务端需要返回
{
"ok": true
}
来确保能鉴权通过。
基本完全兼容hy2的请求模式。