Add custom header support for HTTP proxy

This commit is contained in:
PMExtra 2022-12-15 19:15:43 +08:00 committed by yuhan6665
parent d7ac6946d2
commit c9b6fc0104
4 changed files with 172 additions and 28 deletions

View file

@ -21,8 +21,14 @@ message ServerConfig {
uint32 user_level = 4;
}
message Header {
string key = 1;
string value = 2;
}
// ClientConfig is the protobuf config for HTTP proxy client.
message ClientConfig {
// Sever is a list of HTTP server addresses.
repeated xray.common.protocol.ServerEndpoint server = 1;
repeated Header header = 2;
}