2016-08-27 00:04:35 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2016-09-26 15:14:16 +02:00
|
|
|
package v2ray.core.common.net;
|
2016-12-23 00:24:28 +01:00
|
|
|
option csharp_namespace = "V2Ray.Core.Common.Net";
|
2016-08-27 00:04:35 +02:00
|
|
|
option go_package = "net";
|
2016-09-26 15:14:16 +02:00
|
|
|
option java_package = "com.v2ray.core.common.net";
|
2017-02-03 23:15:10 +01:00
|
|
|
option java_multiple_files = true;
|
2016-08-27 00:04:35 +02:00
|
|
|
|
2017-02-13 22:39:55 +01:00
|
|
|
// Address of a network host. It may be either an IP address or a domain address.
|
2016-10-12 18:43:55 +02:00
|
|
|
message IPOrDomain {
|
2016-08-27 00:04:35 +02:00
|
|
|
oneof address {
|
2016-10-18 00:12:09 +02:00
|
|
|
// IP address. Must by either 4 or 16 bytes.
|
2016-08-27 00:04:35 +02:00
|
|
|
bytes ip = 1;
|
2016-10-18 00:12:09 +02:00
|
|
|
|
|
|
|
// Domain address.
|
2016-08-27 00:04:35 +02:00
|
|
|
string domain = 2;
|
|
|
|
}
|
2017-02-08 10:01:22 +01:00
|
|
|
}
|