Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49622 - /trunk/installation/src/clients/inst_network_setup.ycp
  • From: locilka@xxxxxxxxxxxxxxxx
  • Date: Mon, 04 Aug 2008 10:59:16 -0000
  • Message-id: <20080804105917.0C771311DD@xxxxxxxxxxxxxxxx>
Author: locilka
Date: Mon Aug 4 12:59:16 2008
New Revision: 49622

URL: http://svn.opensuse.org/viewcvs/yast?rev=49622&view=rev
Log:
Allowing also IPv6 addresses


Modified:
trunk/installation/src/clients/inst_network_setup.ycp

Modified: trunk/installation/src/clients/inst_network_setup.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/clients/inst_network_setup.ycp?rev=49622&r1=49621&r2=49622&view=diff
==============================================================================
--- trunk/installation/src/clients/inst_network_setup.ycp (original)
+++ trunk/installation/src/clients/inst_network_setup.ycp Mon Aug 4 12:59:16
2008
@@ -419,7 +419,7 @@
// TRANSLATORS: error message
Report::Error (_("IP address cannot be empty."));
return false;
- } else if (! IP::Check4 (ip_address)) {
+ } else if (! IP::Check4 (ip_address) && ! IP::Check6 (ip_address)) {
UI::SetFocus (`id ("ip_address"));
Report::Error (sformat (
// TRANSLATORS: Error message, %1 is replaced with invalid IP
address
@@ -451,7 +451,7 @@
// TRANSLATORS: error message
Report::Error (_("Gateway IP address cannot be empty."));
return false;
- } else if (! IP::Check4 (gateway)) {
+ } else if (! IP::Check4 (gateway) && ! IP::Check6 (gateway)) {
UI::SetFocus (`id ("gateway"));
Report::Error (sformat (
// TRANSLATORS: Error message, %1 is replaced with invalid IP
address
@@ -467,7 +467,7 @@
// TRANSLATORS: error message
Report::Error (_("DNS server IP address cannot be empty."));
return false;
- } else if (! IP::Check4 (dns_server)) {
+ } else if (! IP::Check4 (dns_server) && ! IP::Check6 (dns_server)) {
UI::SetFocus (`id ("dns_server"));
Report::Error (sformat (
// TRANSLATORS: Error message, %1 is replaced with invalid IP
address
@@ -505,7 +505,7 @@
// TRANSLATORS: error message
Report::Error (_("Proxy server name or IP address must be set."));
return false;
- } else if (! IP::Check4 (proxy_server) && ! Hostname::CheckFQ
(proxy_server)) {
+ } else if (! IP::Check4 (proxy_server) && ! IP::Check6 (proxy_server)
&& ! Hostname::CheckFQ (proxy_server)) {
UI::SetFocus (`id ("proxy_server"));
Report::Error (sformat (
// TRANSLATORS: Error message, %1 is replaced with invalid IP
address

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages