feat: add queryStrategy option for DNS

This commit is contained in:
AkinoKaede
2021-03-19 23:33:07 +08:00
parent 41d3f31447
commit 8382b29922
16 changed files with 419 additions and 267 deletions
+9 -1
View File
@@ -36,6 +36,12 @@ enum DomainMatchingType {
Regex = 3;
}
enum QueryStrategy {
USE_IP = 0;
USE_IP4 = 1;
USE_IP6 = 2;
}
message Config {
// Nameservers used by this DNS. Only traditional UDP servers are support at
// the moment. A special value 'localhost' as a domain address can be set to
@@ -73,5 +79,7 @@ message Config {
reserved 7;
// DisableCache Disable DNS cache
bool disableCache = 8;
bool disableCache = 8;
QueryStrategy query_strategy = 9;
}