mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-08 14:13:22 +00:00
https://github.com/XTLS/Xray-core/pull/5981#issuecomment-4279809648 Example: https://github.com/XTLS/Xray-core/pull/5981#issuecomment-4283200236 Closes https://github.com/XTLS/Xray-core/issues/5218
30 lines
632 B
Protocol Buffer
30 lines
632 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package xray.proxy.dns;
|
|
option csharp_namespace = "Xray.Proxy.Dns";
|
|
option go_package = "github.com/xtls/xray-core/proxy/dns";
|
|
option java_package = "com.xray.proxy.dns";
|
|
option java_multiple_files = true;
|
|
|
|
import "common/net/destination.proto";
|
|
import "common/geodata/geodat.proto";
|
|
|
|
enum RuleAction {
|
|
Direct = 0;
|
|
Drop = 1;
|
|
Reject = 2;
|
|
Hijack = 3;
|
|
}
|
|
|
|
message DNSRuleConfig {
|
|
RuleAction action = 1;
|
|
repeated int32 qtype = 2;
|
|
repeated xray.common.geodata.DomainRule domain = 3;
|
|
}
|
|
|
|
message Config {
|
|
uint32 user_level = 1;
|
|
repeated DNSRuleConfig rule = 2;
|
|
xray.common.net.Endpoint server = 3;
|
|
}
|