@@ -7,7 +7,10 @@ option java_outer_classname = "AddressProto";
message IPOrDomain {
oneof address {
+ // IP address. Must by either 4 or 16 bytes.
bytes ip = 1;
+
+ // Domain address.
string domain = 2;
}
@@ -7,10 +7,17 @@ option java_outer_classname = "NetworkProto";
enum Network {
Unknown = 0;
+ // Native TCP provided by system.
RawTCP = 1;
+ // V2Ray specific TCP.
TCP = 2;
UDP = 3;
KCP = 4;
WebSocket = 5;
@@ -10,5 +10,7 @@ import "v2ray.com/core/common/loader/type.proto";
message User {
uint32 level = 1;
string email = 2;
+ // Protocol specific account information.
v2ray.core.common.loader.TypedSettings account = 3;