We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distro: Arch Linux Kernel: 6.12.7-arch1-1 Arch: x86_64
Arch Linux
6.12.7-arch1-1
x86_64
When the server address includes a domain, nekobox_core cannot resolve it. Maybe I'm a little dumb.
nekobox_core
I think process_name not working for nekobox_core.
process_name
My DNS object:
{ "servers": [ { "tag": "cloudflare", "address": "1.1.1.1", "detour": "proxy" }, { "tag": "cloudflare-tls", "address": "tls://cloudflare-dns.com", "address_resolver": "cloudflare", "detour": "proxy" }, { "tag": "dns-direct", "address": "1.1.1.1", "detour": "direct" }, { "tag": "dns-block", "address": "rcode://success" } ], "rules": [ { "geosite": "private", "server": "dns-block" }, { "domain_suffix": ".ru", "server": "dns-direct" }, { "process_name": ["nekoray_core", "nekobox_core"], "server": "dns-direct" } ], "final": "cloudflare-tls" }
My global routes:
{ "rules": [ { "geoip": "private", "outbound": "direct" }, { "geosite": "private", "outbound": "direct" }, { "domain_suffix": ".ru", "outbound": "direct" }, { "process_name": [ "nekoray_core", "nekobox_core" ], "outbound": "direct" } ], "auto_detect_interface": true, "final": "proxy" }
The text was updated successfully, but these errors were encountered:
True shitty but works
diff --git a/db/ConfigBuilder.cpp b/db/ConfigBuilder.cpp index 379fff7..55fb50a 100644 --- a/db/ConfigBuilder.cpp +++ b/db/ConfigBuilder.cpp @@ -621,6 +621,25 @@ namespace NekoGui { if (dataStore->routing->use_dns_object) { dns = QString2QJsonObject(dataStore->routing->dns_object); + + // std::cout << status->ent->bean->serverAddress.toStdString() << " Address\n"; + + auto dns_servers = dns["servers"].toArray(); + auto dns_server = QJsonObject{ + {"tag", "neko-dns-direct"}, + {"address", "local"}, + {"detour", "direct"}, + }; + dns_servers += dns_server; + dns["servers"] = dns_servers; + + auto dns_rules = dns["rules"].toArray(); + auto dns_rule = QJsonObject{ + {"domain_suffix", status->ent->bean->serverAddress.toStdString().data()}, + {"server", "neko-dns-direct"}, + }; + dns_rules += dns_rule; + dns["rules"] = dns_rules; } status->result->coreConfig.insert("dns", dns);
Sorry, something went wrong.
No branches or pull requests
Distro:
Arch Linux
Kernel:
6.12.7-arch1-1
Arch:
x86_64
When the server address includes a domain,
nekobox_core
cannot resolve it.Maybe I'm a little dumb.
I think
process_name
not working fornekobox_core
.My DNS object:
My global routes:
The text was updated successfully, but these errors were encountered: