github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/protos/config/bypass/bypass.proto (about)

     1  syntax = "proto3";
     2  
     3  package yuhaiin.bypass;
     4  
     5  option go_package = "github.com/Asutorufa/yuhaiin/pkg/protos/config/bypass";
     6  
     7  enum mode {
     8    bypass = 0;
     9    direct = 1;
    10    proxy = 2;
    11    block = 3;
    12  }
    13  
    14  message bypass_config {
    15    mode tcp = 3 [ json_name = "tcp" ];
    16    mode udp = 4 [ json_name = "udp" ];
    17    bool sniffy = 5 [ json_name = "sniffy" ];
    18    string bypass_file = 2 [ json_name = "bypass_file" ];
    19    repeated mode_config custom_rule_v3 = 7 [ json_name = "custom_rule_v3" ];
    20  }
    21  
    22  enum resolve_strategy {
    23    default = 0;
    24    prefer_ipv4 = 1;
    25    only_ipv4 = 2;
    26    prefer_ipv6 = 3;
    27    only_ipv6 = 4;
    28  }
    29  
    30  message mode_config {
    31    mode mode = 1 [ json_name = "mode" ];
    32    string tag = 2 [ json_name = "tag" ];
    33    repeated string hostname = 3 [ json_name = "hostname" ];
    34    resolve_strategy resolve_strategy = 4 [ json_name = "resolve_strategy" ];
    35  }