]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix not loading dns cache file on activestate 5.8.
authoreldy <>
Mon, 29 Dec 2003 18:48:16 +0000 (18:48 +0000)
committereldy <>
Mon, 29 Dec 2003 18:48:16 +0000 (18:48 +0000)
wwwroot/cgi-bin/awstats.pl

index 2b677f38916771b8be4d192a4f474229264185e2..37ca9a18056aeb528528e97967239a8a3fb4f99c 100644 (file)
@@ -3886,8 +3886,8 @@ sub Read_DNS_Cache {
        if ($PluginsLoaded{'LoadCache'}{'hashfiles'}) { LoadCache_hashfiles($filetoload,$hashtoload); }
        if (! scalar keys %$hashtoload) {
                open(DNSFILE,"$filetoload") or error("Couldn't open DNS Cache file \"$filetoload\": $!");
-               binmode DNSFILE;
-               # This is the fastest way to load with regexp that I know
+               #binmode DNSFILE;               # If we set binmode here, it seems that the load is broken on ActiveState 5.8
+               # This is a fast way to load with regexp
                %$hashtoload = map(/^(?:\d{0,10}\s+)?([0-9A-F:\.]+)\s+([^\s]+)$/oi,<DNSFILE>);
                close DNSFILE;
                if ($savetohash) {