[yast-commit] r49367 - /trunk/dns-server/src/dialog-main.ycp
Author: locilka Date: Wed Jul 23 16:45:56 2008 New Revision: 49367 URL: http://svn.opensuse.org/viewcvs/yast?rev=49367&view=rev Log: Do not create IPv6 zones with dot at the end Modified: trunk/dns-server/src/dialog-main.ycp Modified: trunk/dns-server/src/dialog-main.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/dns-server/src/dialog-main.ycp?rev=49367&r1=49366&r2=49367&view=diff ============================================================================== --- trunk/dns-server/src/dialog-main.ycp (original) +++ trunk/dns-server/src/dialog-main.ycp Wed Jul 23 16:45:56 2008 @@ -1519,10 +1519,7 @@ string zone_type = (string) UI::QueryWidget (`id ("new_zone_type"), `Value); - // Do not add the final dot to the zone name - if (regexpmatch (zone_name, "\\.+$")) { - zone_name = regexpsub (zone_name, "(.*)\\.+$", "\\1"); - } + // IPv6 zone name in forward format // e.g., "3ffe:ffff::210:a4ff:fe01:1/48" @@ -1533,6 +1530,11 @@ zone_name = TransformToReverseIPv6ZoneName (zone_name + "/64"); } + // Do not add the final dot to the zone name + if (regexpmatch (zone_name, "\\.+$")) { + zone_name = regexpsub (zone_name, "(.*)\\.+$", "\\1"); + } + string encoded_zone_name = Punycode::EncodeDomainName(zone_name); // zone validation -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
locilka@svn.opensuse.org