github.com/v2fly/v2ray-core/v4@v4.45.2/common/net/address.proto (about)

     1  syntax = "proto3";
     2  
     3  package v2ray.core.common.net;
     4  option csharp_namespace = "V2Ray.Core.Common.Net";
     5  option go_package = "github.com/v2fly/v2ray-core/v4/common/net";
     6  option java_package = "com.v2ray.core.common.net";
     7  option java_multiple_files = true;
     8  
     9  // Address of a network host. It may be either an IP address or a domain
    10  // address.
    11  message IPOrDomain {
    12    oneof address {
    13      // IP address. Must by either 4 or 16 bytes.
    14      bytes ip = 1;
    15  
    16      // Domain address.
    17      string domain = 2;
    18    }
    19  }