diff --git a/dcc-network-plugin/sections/vpn/vpnopenconnectsection.cpp b/dcc-network-plugin/sections/vpn/vpnopenconnectsection.cpp index a1bd3216..9057f06c 100644 --- a/dcc-network-plugin/sections/vpn/vpnopenconnectsection.cpp +++ b/dcc-network-plugin/sections/vpn/vpnopenconnectsection.cpp @@ -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); diff --git a/dcc-network-plugin/sections/vpn/vpnopenvpnsection.cpp b/dcc-network-plugin/sections/vpn/vpnopenvpnsection.cpp index 9fcaf29c..e58cae28 100644 --- a/dcc-network-plugin/sections/vpn/vpnopenvpnsection.cpp +++ b/dcc-network-plugin/sections/vpn/vpnopenvpnsection.cpp @@ -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); diff --git a/dcc-network-plugin/sections/vpn/vpnsection.cpp b/dcc-network-plugin/sections/vpn/vpnsection.cpp index 5c88b998..4874752f 100644 --- a/dcc-network-plugin/sections/vpn/vpnsection.cpp +++ b/dcc-network-plugin/sections/vpn/vpnsection.cpp @@ -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); diff --git a/dcc-network-plugin/sections/vpn/vpnstrongswansection.cpp b/dcc-network-plugin/sections/vpn/vpnstrongswansection.cpp index a788574c..74036df4 100644 --- a/dcc-network-plugin/sections/vpn/vpnstrongswansection.cpp +++ b/dcc-network-plugin/sections/vpn/vpnstrongswansection.cpp @@ -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); diff --git a/dcc-network-plugin/sections/vpn/vpnvpncsection.cpp b/dcc-network-plugin/sections/vpn/vpnvpncsection.cpp index fc6c809b..64903950 100644 --- a/dcc-network-plugin/sections/vpn/vpnvpncsection.cpp +++ b/dcc-network-plugin/sections/vpn/vpnvpncsection.cpp @@ -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);