1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-01 08:16:00 -04:00
v2fly/proxy/socks/config.proto

29 lines
589 B
Protocol Buffer
Raw Normal View History

2016-08-28 17:41:45 -04:00
syntax = "proto3";
package com.v2ray.core.proxy.socks;
option go_package = "socks";
import "v2ray.com/core/common/net/address.proto";
2016-09-25 16:54:18 -04:00
import "v2ray.com/core/common/protocol/server_spec.proto";
message Account {
string username = 1;
string password = 2;
}
enum AuthType {
NO_AUTH = 0;
PASSWORD = 1;
}
2016-08-28 17:41:45 -04:00
message ServerConfig {
AuthType auth_type = 1;
map<string, string> accounts = 2;
com.v2ray.core.common.net.AddressPB address = 3;
bool udp_enabled = 4;
uint32 timeout = 5;
}
2016-09-25 16:54:18 -04:00
message ClientConfig {
repeated com.v2ray.core.common.protocol.ServerSpecPB server = 1;
}