IPv6手动模式默认网关为非必填项

This commit is contained in:
zhangyuanyuan1 2023-03-16 10:25:18 +08:00
parent b8d73f687f
commit 757cd96da4
1 changed files with 4 additions and 5 deletions

View File

@ -253,7 +253,6 @@ void Ipv6Page::setControlEnabled(bool check)
} else {
ipv6AddressEdit->setPlaceholderText(tr("Required")); //必填
lengthEdit->setPlaceholderText(tr("Required")); //必填
gateWayEdit->setPlaceholderText(tr("Required")); //必填
}
ipv6AddressEdit->setEnabled(check);
@ -313,10 +312,10 @@ bool Ipv6Page::checkConnectBtnIsEnabled()
return false;
}
if (gateWayEdit->text().isEmpty() || !getIpv6EditState(gateWayEdit->text())) {
qDebug() << "ipv6 gateway empty or invalid";
return false;
}
// if (gateWayEdit->text().isEmpty() || !getIpv6EditState(gateWayEdit->text())) {
// qDebug() << "ipv6 gateway empty or invalid";
// return false;
// }
if (firstDnsEdit->text().isEmpty() && !secondDnsEdit->text().isEmpty()) {
qDebug() << "ipv6 dns sort invalid";