1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-01 03:25:23 +00:00
v2fly/proxy/socks/config.proto

52 lines
1.3 KiB
Protocol Buffer
Raw Normal View History

2016-08-28 21:41:45 +00:00
syntax = "proto3";
2016-09-26 13:14:16 +00:00
package v2ray.core.proxy.socks;
2016-12-22 23:24:28 +00:00
option csharp_namespace = "V2Ray.Core.Proxy.Socks";
option go_package = "github.com/v2fly/v2ray-core/v5/proxy/socks";
2016-09-26 13:14:16 +00:00
option java_package = "com.v2ray.core.proxy.socks";
2017-02-03 22:15:10 +00:00
option java_multiple_files = true;
2016-08-28 21:41:45 +00:00
import "common/net/address.proto";
2021-12-11 23:05:40 +00:00
import "common/net/packetaddr/config.proto";
import "common/protocol/server_spec.proto";
2016-09-25 20:54:18 +00:00
2018-10-18 07:25:58 +00:00
// Account represents a Socks account.
2016-09-25 20:54:18 +00:00
message Account {
string username = 1;
string password = 2;
}
2018-10-18 07:25:58 +00:00
// AuthType is the authentication type of Socks proxy.
2016-09-25 20:54:18 +00:00
enum AuthType {
2021-12-27 04:33:08 +00:00
// NO_AUTH is for anonymous authentication.
2016-09-25 20:54:18 +00:00
NO_AUTH = 0;
2018-10-18 07:25:58 +00:00
// PASSWORD is for username/password authentication.
2016-09-25 20:54:18 +00:00
PASSWORD = 1;
}
2016-08-28 21:41:45 +00:00
2021-09-16 06:42:12 +00:00
enum Version {
SOCKS5 = 0;
SOCKS4 = 1;
SOCKS4A = 2;
}
2018-10-18 07:25:58 +00:00
// ServerConfig is the protobuf config for Socks server.
2016-08-28 21:41:45 +00:00
message ServerConfig {
AuthType auth_type = 1;
map<string, string> accounts = 2;
2016-10-12 16:43:55 +00:00
v2ray.core.common.net.IPOrDomain address = 3;
2016-08-28 21:41:45 +00:00
bool udp_enabled = 4;
2017-11-27 21:09:30 +00:00
uint32 timeout = 5 [deprecated = true];
uint32 user_level = 6;
2021-12-11 23:05:40 +00:00
v2ray.core.net.packetaddr.PacketAddrType packet_encoding = 7;
2016-08-28 21:41:45 +00:00
}
2016-09-25 20:54:18 +00:00
2018-10-18 07:25:58 +00:00
// ClientConfig is the protobuf config for Socks client.
2016-09-25 20:54:18 +00:00
message ClientConfig {
2018-10-18 07:25:58 +00:00
// Sever is a list of Socks server addresses.
2016-10-12 16:43:55 +00:00
repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
2021-09-16 06:42:12 +00:00
Version version = 2;
2017-11-27 21:09:30 +00:00
}