mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-19 02:46:33 -05:00
ef460f68f8
* Update protoc binary executable files to v3.13.0 * Write proto files in more standard way * Make go generate & vprotogen compatible with protoc-gen-gofast * Regenerate pb.go files according to new proto files * Clean go.sum by running go mod tidy * Implement mustEmbedUnimplementedServiceServer for gPRC services
29 lines
741 B
Protocol Buffer
29 lines
741 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package v2ray.core.proxy.http;
|
|
option csharp_namespace = "V2Ray.Core.Proxy.Http";
|
|
option go_package = "v2ray.com/core/proxy/http";
|
|
option java_package = "com.v2ray.core.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 v2ray.core.common.protocol.ServerEndpoint server = 1;
|
|
}
|