config.proto 813 B

12345678910111213141516171819202122232425262728
  1. syntax = "proto3";
  2. package v2ray.core.proxy.dns;
  3. option csharp_namespace = "V2Ray.Core.Proxy.Dns";
  4. option go_package = "github.com/v2fly/v2ray-core/v5/proxy/dns";
  5. option java_package = "com.v2ray.core.proxy.dns";
  6. option java_multiple_files = true;
  7. import "common/net/destination.proto";
  8. import "common/protoext/extensions.proto";
  9. message Config {
  10. // Server is the DNS server address. If specified, this address overrides the
  11. // original one.
  12. v2ray.core.common.net.Endpoint server = 1;
  13. uint32 user_level = 2;
  14. bool override_response_ttl = 4;
  15. uint32 response_ttl = 3;
  16. }
  17. message SimplifiedConfig {
  18. option (v2ray.core.common.protoext.message_opt).type = "outbound";
  19. option (v2ray.core.common.protoext.message_opt).short_name = "dns";
  20. bool override_response_ttl = 4;
  21. uint32 response_ttl = 3;
  22. }