Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dcc-network-plugin/sections/vpn/vpnopenconnectsection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bool VpnOpenConnectSection::allInputValid()
{
bool valid = true;

if (m_gateway->text().isEmpty() || !isIpv4Address(m_gateway->text())) {
if (m_gateway->text().isEmpty()) {
valid = false;
m_gateway->setIsErr(true);
m_gateway->dTextEdit()->showAlertMessage(tr("Invalid gateway"), parentWidget(), 2000);
Expand Down
2 changes: 1 addition & 1 deletion dcc-network-plugin/sections/vpn/vpnopenvpnsection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ bool VpnOpenVPNSection::allInputValid()
{
bool valid = true;

if (m_gateway->text().isEmpty() || !isIpv4Address(m_gateway->text())) {
if (m_gateway->text().isEmpty()) {
valid = false;
m_gateway->setIsErr(true);
m_gateway->dTextEdit()->showAlertMessage(tr("Invalid gateway"), parentWidget(), 2000);
Expand Down
2 changes: 1 addition & 1 deletion dcc-network-plugin/sections/vpn/vpnsection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bool VpnSection::allInputValid()
{
bool valid = true;

if (m_gateway->text().isEmpty() || !isIpv4Address(m_gateway->text())) {
if (m_gateway->text().isEmpty()) {
valid = false;
m_gateway->setIsErr(true);
m_gateway->dTextEdit()->showAlertMessage(tr("Invalid gateway"), parentWidget(), 2000);
Expand Down
2 changes: 1 addition & 1 deletion dcc-network-plugin/sections/vpn/vpnstrongswansection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool VpnStrongSwanSection::allInputValid()
{
bool valid = true;

if (m_gateway->text().isEmpty() || !isIpv4Address(m_gateway->text())) {
if (m_gateway->text().isEmpty()) {
valid = false;
m_gateway->setIsErr(true);
m_gateway->dTextEdit()->showAlertMessage(tr("Invalid gateway"), parentWidget(), 2000);
Expand Down
2 changes: 1 addition & 1 deletion dcc-network-plugin/sections/vpn/vpnvpncsection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool VpnVPNCSection::allInputValid()
{
bool valid = true;

if (m_gateway->text().isEmpty() || !isIpv4Address(m_gateway->text())) {
if (m_gateway->text().isEmpty()) {
valid = false;
m_gateway->setIsErr(true);
m_gateway->dTextEdit()->showAlertMessage(tr("Invalid gateway"), parentWidget(), 2000);
Expand Down