mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
feat: public dns select
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <QFile>
|
||||
#include <QMessageBox>
|
||||
#include <QListWidget>
|
||||
#include <QLineEdit>
|
||||
|
||||
#define REFRESH_ACTIVE_ROUTING(name, obj) \
|
||||
this->active_routing = name; \
|
||||
@@ -149,9 +150,9 @@ void DialogManageRoutes::UpdateDisplayRouting(NekoGui::Routing *conf, bool qv) {
|
||||
ui->use_dns_object->setChecked(conf->use_dns_object);
|
||||
ui->dns_object->setPlainText(conf->dns_object);
|
||||
ui->dns_routing->setChecked(conf->dns_routing);
|
||||
ui->remote_dns->setText(conf->remote_dns);
|
||||
ui->remote_dns->setCurrentText(conf->remote_dns);
|
||||
ui->remote_dns_strategy->setCurrentText(conf->remote_dns_strategy);
|
||||
ui->direct_dns->setText(conf->direct_dns);
|
||||
ui->direct_dns->setCurrentText(conf->direct_dns);
|
||||
ui->direct_dns_strategy->setCurrentText(conf->direct_dns_strategy);
|
||||
}
|
||||
|
||||
@@ -171,9 +172,9 @@ void DialogManageRoutes::SaveDisplayRouting(NekoGui::Routing *conf) {
|
||||
conf->use_dns_object = ui->use_dns_object->isChecked();
|
||||
conf->dns_object = ui->dns_object->toPlainText();
|
||||
conf->dns_routing = ui->dns_routing->isChecked();
|
||||
conf->remote_dns = ui->remote_dns->text();
|
||||
conf->remote_dns = ui->remote_dns->currentText();
|
||||
conf->remote_dns_strategy = ui->remote_dns_strategy->currentText();
|
||||
conf->direct_dns = ui->direct_dns->text();
|
||||
conf->direct_dns = ui->direct_dns->currentText();
|
||||
conf->direct_dns_strategy = ui->direct_dns_strategy->currentText();
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,52 @@ For more information, see the document "Configuration/DNS".</string>
|
||||
<item row="0" column="2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="remote_dns"/>
|
||||
<widget class="QComboBox" name="remote_dns">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://8.8.8.8/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://1.0.0.1/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://1.1.1.1/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://dns.google/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://one.one.one.one/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://[2001:4860:4860::8888]/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://[2606:4700:4700::1111]/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_10">
|
||||
@@ -210,7 +255,62 @@ For more information, see the document "Configuration/DNS".</string>
|
||||
<item row="1" column="2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="direct_dns"/>
|
||||
<widget class="QComboBox" name="direct_dns">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">localhost</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://223.5.5.5/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://1.12.12.12/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://dns.alidns.com/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">https://doh.pub/dns-query</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">223.5.5.5</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">119.29.29.29</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">2400:3200::1</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">2402:4e00::</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_11">
|
||||
|
||||
Reference in New Issue
Block a user