mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
fix: replace old ineffective check ip
This commit is contained in:
@@ -164,7 +164,7 @@ void MainWindow::setModeToL2tp()
|
||||
QStringList()
|
||||
<< "-n"
|
||||
<< "1"
|
||||
<< settings->value("L2TP/CheckIp", "39.156.66.10").toString()
|
||||
<< settings->value("L2TP/CheckIp", "223.5.5.5").toString()
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -794,6 +794,13 @@ void MainWindow::upgradeSettings()
|
||||
}
|
||||
}
|
||||
|
||||
// Replace old ineffective check ip
|
||||
if (settings->value("L2TP/CheckIp", "223.5.5.5").toString() == "39.156.66.10")
|
||||
{
|
||||
settings->setValue("L2TP/CheckIp", "223.5.5.5");
|
||||
settings->sync();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ void NetworkDetector::checkInternet()
|
||||
checkProxy();
|
||||
});
|
||||
|
||||
process->start("ping", QStringList() << "39.156.66.10" << "-n" << "1");
|
||||
process->start("ping", QStringList() << "223.5.5.5" << "-n" << "1");
|
||||
}
|
||||
|
||||
void NetworkDetector::checkProxy()
|
||||
|
||||
@@ -72,7 +72,7 @@ SettingWindow::SettingWindow(QWidget *parent, QSettings *inputSettings) :
|
||||
ui->l2tpAutoCheckComboBox->setCurrentText("否");
|
||||
}
|
||||
|
||||
ui->l2tpCheckIpLineEdit->setText(settings->value("L2TP/CheckIp", "39.156.66.10").toString());
|
||||
ui->l2tpCheckIpLineEdit->setText(settings->value("L2TP/CheckIp", "223.5.5.5").toString());
|
||||
ui->l2tpCheckTimeSpinBox->setValue(settings->value("L2TP/CheckTime", 600).toInt());
|
||||
|
||||
if (settings->value("WebLogin/IntlUrl", false).toBool())
|
||||
|
||||
@@ -286,7 +286,7 @@
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="l2tpCheckIpLineEdit">
|
||||
<property name="text">
|
||||
<string>39.156.66.10</string>
|
||||
<string>223.5.5.5</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user