Xray-core/proxy/http/config.proto

29 lines
728 B
Protocol Buffer
Raw Normal View History

2020-11-25 13:01:53 +02:00
syntax = "proto3";
package xray.proxy.http;
option csharp_namespace = "Xray.Proxy.Http";
2020-12-04 03:36:16 +02:00
option go_package = "github.com/xtls/xray-core/proxy/http";
2020-11-25 13:01:53 +02:00
option java_package = "com.xray.proxy.http";
option java_multiple_files = true;
import "common/protocol/server_spec.proto";
message Account {
string username = 1;
string password = 2;
}
// Config for HTTP proxy server.
message ServerConfig {
uint32 timeout = 1 [deprecated = true];
map<string, string> accounts = 2;
bool allow_transparent = 3;
uint32 user_level = 4;
}
// 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;
}