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