Files
v2fly/proxy/dns/config.proto
T
ccedd48ca0 proxy dns with NOTIMP error (#2954)
* proxy dns with NOTIMP error

* fix compile error when protoc is relative link

```
$ go generate
...
proto.go
fork/exec ../Cellar/protobuf/28.3/bin/protoc: no such file or directory
exit status 1
proto.go:5: running "go": exit status 1
context_test.go
functions_test.go
v2ray_test.go
$ ls -l `which protoc`
lrwxr-xr-x 1 local admin 34 Nov  1 13:56 /opt/homebrew/bin/protoc -> ../Cellar/protobuf/28.3/bin/protoc
```

* add nonIPQuery for dns config

* go generate with only dns.proto

* Try Allowing Github actions

* fix merge error

* apply coding style

---------

Co-authored-by: local <local@localhost>
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
2025-07-03 17:37:14 +01:00

29 lines
840 B
Protocol Buffer

syntax = "proto3";
package v2ray.core.proxy.dns;
option csharp_namespace = "V2Ray.Core.Proxy.Dns";
option go_package = "github.com/v2fly/v2ray-core/v5/proxy/dns";
option java_package = "com.v2ray.core.proxy.dns";
option java_multiple_files = true;
import "common/net/destination.proto";
import "common/protoext/extensions.proto";
message Config {
// Server is the DNS server address. If specified, this address overrides the
// original one.
v2ray.core.common.net.Endpoint server = 1;
uint32 user_level = 2;
bool override_response_ttl = 4;
uint32 response_ttl = 3;
string non_IP_query = 5;
}
message SimplifiedConfig {
option (v2ray.core.common.protoext.message_opt).type = "outbound";
option (v2ray.core.common.protoext.message_opt).short_name = "dns";
bool override_response_ttl = 4;
uint32 response_ttl = 3;
}