Allow IPv6 remote log dest
authorJamie Cameron <jcameron@webmin.com>
Mon, 1 Nov 2010 04:55:23 +0000 (21:55 -0700)
committerJamie Cameron <jcameron@webmin.com>
Mon, 1 Nov 2010 04:55:23 +0000 (21:55 -0700)
syslog/save_log.cgi

index 5d2e017..378e789 100755 (executable)
@@ -154,7 +154,7 @@ else {
                $log->{'pipe'} = $in{'pipe'};
                }
        elsif ($in{'mode'} == 2) {
-               gethostbyname($in{'host'}) ||
+               &to_ipaddress($in{'host'}) || &to_ip6address($in{'host'}) ||
                        &error(&text('save_ehost', $in{'host'}));
                $log->{'host'} = $in{'host'};
                }