Domain-Rule: Support configuration of dualstack selection

This commit is contained in:
Nick Peng
2021-01-10 02:39:59 +08:00
parent ed63c617bc
commit 98be18f926
6 changed files with 70 additions and 14 deletions

View File

@@ -80,6 +80,7 @@ typedef enum {
#define DOMAIN_FLAG_ADDR_IPV6_IGN (1 << 5)
#define DOMAIN_FLAG_IPSET_IGNORE (1 << 6)
#define DOMAIN_FLAG_NAMESERVER_IGNORE (1 << 7)
#define DOMAIN_FLAG_DUALSTACK_SELECT (1 << 8)
#define SERVER_FLAG_EXCLUDE_DEFAULT (1 << 0)
@@ -95,6 +96,7 @@ typedef enum {
struct dns_rule_flags {
unsigned int flags;
unsigned int is_flag_set;
};
struct dns_address_IPV4 {