2016-08-26 22:04:35 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2016-09-26 13:14:16 +00:00
|
|
|
package v2ray.core.common.net;
|
2016-08-26 22:04:35 +00:00
|
|
|
option go_package = "net";
|
2016-09-26 13:14:16 +00:00
|
|
|
option java_package = "com.v2ray.core.common.net";
|
|
|
|
option java_outer_classname = "AddressProto";
|
2016-08-26 22:04:35 +00:00
|
|
|
|
2016-10-12 16:43:55 +00:00
|
|
|
message IPOrDomain {
|
2016-08-26 22:04:35 +00:00
|
|
|
oneof address {
|
2016-10-17 22:12:09 +00:00
|
|
|
// IP address. Must by either 4 or 16 bytes.
|
2016-08-26 22:04:35 +00:00
|
|
|
bytes ip = 1;
|
2016-10-17 22:12:09 +00:00
|
|
|
|
|
|
|
// Domain address.
|
2016-08-26 22:04:35 +00:00
|
|
|
string domain = 2;
|
|
|
|
}
|
|
|
|
}
|