Fix IP address saving
authorJamie Cameron <jcameron@webmin.com>
Sat, 25 Apr 2009 17:01:28 +0000 (17:01 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sat, 25 Apr 2009 17:01:28 +0000 (17:01 +0000)
apache/CHANGELOG
apache/save_vserv.cgi

index 2d65f44..a4d3614 100644 (file)
@@ -44,3 +44,5 @@ When a virtual host's base directory is changed, all <directory> blocks under it
 When stopping and re-starting Apache, give it time to fully stop before continuing.
 ---- Changes since 1.450 ----
 Fixed handling of IPv6 addresses so that Apache's [address] format is now fully supported.
+---- Changes since 1.480 ----
+Fixed bug that preventing saving of virtual hosts with multiple addresses, one of which is IPv6.
index 6f7c93f..17297ac 100755 (executable)
@@ -48,6 +48,7 @@ else {
                        $ac =~ s/:(\d+)$//;
                        $ac eq '*' || $ac eq '_default_' ||
                            gethostbyname($ac) ||
+                           $ac =~ /^\[(\S+)\]$/ && &check_ip6address("$1") ||
                                &error(&text('vserv_eaddr2', $ac));
                        }
                $addr = join(" ", @addrs);