Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1578160
 поиск   регистрация   авторизация 
 
Группа :: Сети/WWW
Пакет: lightsquid

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: lightsquid-ip2name.patch


diff -uNr lightsquid.orig/ip2name/ip2name.list lightsquid/ip2name/ip2name.list
--- lightsquid.orig/ip2name/ip2name.list	2006-12-04 09:48:45 +1200
+++ lightsquid/ip2name/ip2name.list	2006-12-04 16:50:46 +1200
@@ -9,7 +9,7 @@
 #if user not found -> return IP 
 
 sub StartIp2Name() {
-    my $ipfile = "/etc/squid/users.txt";
+    my $ipfile = "/etc/lightsquid/users.txt";
 
     open (F, "<$ipfile") || die ("ERROR: Can't open $ipfile!!! \n");
     while (<F>) {
diff -uNr lightsquid.orig/ip2name/ip2name.squidlist lightsquid/ip2name/ip2name.squidlist
--- lightsquid.orig/ip2name/ip2name.squidlist	2006-12-04 09:48:45 +1200
+++ lightsquid/ip2name/ip2name.squidlist	2006-12-04 16:52:02 +1200
@@ -14,7 +14,7 @@
 
 sub Ip2Name($$$) {
     my $ip=shift;
-    my $ipfile = "/etc/squid/users.txt";
+    my $ipfile = "/etc/lightsquid/users.txt";
     my $ipaddr = shift;
 
     open (F, "<".$ipfile) || die ("ERROR: Can't open ".$ipfile."!!!\n");
diff -uNr lightsquid.orig/ip2name/ip2name.squidlist2 lightsquid/ip2name/ip2name.squidlist2
--- lightsquid.orig/ip2name/ip2name.squidlist2	2006-12-04 09:48:45 +1200
+++ lightsquid/ip2name/ip2name.squidlist2	2006-12-04 16:54:18 +1200
@@ -11,7 +11,7 @@
 #if user not found -> return IP 
 
 sub StartIp2Name() {
-    my $ipfile = "/etc/squid/users.txt";
+    my $ipfile = "/etc/lightsquid/users.txt";
 
     open (F, "<".$ipfile) || die ("ERROR: Can't open ".$ipfile."!!!\n");
     while (<F>) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005