mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
urltest: use dns
This commit is contained in:
@@ -150,7 +150,7 @@ void MainWindow::speedtest_current_group(int mode) {
|
||||
//
|
||||
libcore::TestReq req;
|
||||
req.set_mode((libcore::TestMode) mode);
|
||||
req.set_timeout(5000);
|
||||
req.set_timeout(10 * 1000);
|
||||
req.set_url(NekoGui::dataStore->test_latency_url.toStdString());
|
||||
|
||||
//
|
||||
@@ -181,7 +181,7 @@ void MainWindow::speedtest_current_group(int mode) {
|
||||
}
|
||||
//
|
||||
auto config = new libcore::LoadConfigReq;
|
||||
config->set_core_config(QJsonObject2QString(c->coreConfig, true).toStdString());
|
||||
config->set_core_config(QJsonObject2QString(c->coreConfig, false).toStdString());
|
||||
req.set_allocated_config(config);
|
||||
req.set_in_address(profile->bean->serverAddress.toStdString());
|
||||
|
||||
@@ -250,7 +250,7 @@ void MainWindow::speedtest_current() {
|
||||
runOnNewThread([=] {
|
||||
libcore::TestReq req;
|
||||
req.set_mode(libcore::UrlTest);
|
||||
req.set_timeout(5000);
|
||||
req.set_timeout(10 * 1000);
|
||||
req.set_url(NekoGui::dataStore->test_latency_url.toStdString());
|
||||
|
||||
bool rpcOK;
|
||||
@@ -306,7 +306,7 @@ void MainWindow::neko_start(int _id) {
|
||||
auto neko_start_stage2 = [=] {
|
||||
#ifndef NKR_NO_GRPC
|
||||
libcore::LoadConfigReq req;
|
||||
req.set_core_config(QJsonObject2QString(result->coreConfig, true).toStdString());
|
||||
req.set_core_config(QJsonObject2QString(result->coreConfig, false).toStdString());
|
||||
req.set_enable_nekoray_connections(NekoGui::dataStore->connection_statistics);
|
||||
if (NekoGui::dataStore->traffic_loop_interval > 0) {
|
||||
req.add_stats_outbounds("proxy");
|
||||
|
||||
Reference in New Issue
Block a user