From: Jo-Philipp Wich Date: Tue, 23 Dec 2008 21:57:34 +0000 (+0000) Subject: trunk: remove bitrot X-Git-Tag: 0.9.0~862 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=889d3a4111c9a5f501602b6387ce273e40e2b9db;p=oweals%2Fluci.git trunk: remove bitrot --- diff --git a/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua b/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua index e3351ab00..2e9768ff3 100644 --- a/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua +++ b/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua @@ -28,14 +28,8 @@ s1:option( Value, "txqlen" ).optional = true net = s1:option( Value, "net" ) for _, route in ipairs(luci.sys.net.routes()) do - if route.Iface ~= "lo" and route.Mask ~= "FFFFFFFF" then - local netmask = luci.ip.IPv4(route.Mask) - if netmask then - local netaddr = luci.ip.IPv4(route.Destination, netmask) - if netaddr then - net:value( netaddr:string() ) - end - end + if route.device ~= "lo" and route.dest:prefix() < 32 then + net:value( route.dest:string() ) end end diff --git a/applications/luci-polipo/luasrc/i18n/polipo.en.xml b/applications/luci-polipo/luasrc/i18n/polipo.en.xml new file mode 100644 index 000000000..b4e8df899 --- /dev/null +++ b/applications/luci-polipo/luasrc/i18n/polipo.en.xml @@ -0,0 +1,49 @@ + + + + +Polipo +On-Disk Cache +Shared cache +Enable if cache (proxy) is shared by multiple users. +To enable polipo on-disk cache cleaning (highly recommended), you should add a cron job in Scheduled Tasks services that will execute /usr/sbin/polipo_purge script. For example to perform disk cache cleanup every day at 6:00 in the morning you should add the following line in Scheduled Tasks "0 6 * * * /usr/sbin/polipo_purge" (without quotes). +Disk cache location +Location where polipo will cache files permanently. Use of external storage devices is recommended, because the cache can grow considerably. Leave it empty to disable on-disk cache. +Truncate cache files size (in bytes) +Size to which cached files should be truncated. (default value: 1048576) +Truncate cache files time +Time after which cached files will be truncated. (default value: 4d12h) +Delete cache files time +Time after which cached files will be deleted. (default value: 32d) +Polipo is a small and fast caching web proxy. +General +Allowed clients +When listen address is set to 0.0.0.0 or :: (IPv6), you must list clients that are allowed to connect. The format is IP address or network address (192.168.1.123, 192.168.1.0/24, 2001:660:116::/48 (IPv6)). +In RAM cache size (in bytes) +How much RAM should Polipo use for its cache. +DNS server address +Set the DNS server address to use, if you want Polipo to use different DNS server than the host system. +Query DNS for IPv6 +false = Do not query IPv6; reluctantly = Query both, prefer IPv4; happily = Query both, prefer IPv6; true = Query only IPv6 +Query DNS by hostname +false = Never use system DNS resolver; reluctantly = Query DNS directly, if DNS server is unavailable fail to system DNS resolver; happily = Query DNS directly, if host could not be found fallback to system DNS resolver; true = Always use system DNS resolver +Syslog facility +Log file location +Use of external storage device is recommended, because the log file is written frequently and can grow considerably. +Log to syslog +Parent proxy authentication +Basic HTTP authentication supported. Provide username and password in username:password format. +Parent proxy address +Parent proxy address (in host:port format), to which Polipo will forward the requests. +Listen address +The interface on which Polipo will listen. To listen on all interfaces use 0.0.0.0 or :: (IPv6). +Listen port +Port on which Polipo will listen. (default value: 8123) +Poor Man's Multiplexing +Poor Man's Multiplexing (PMM) is a technique that simulates multiplexing by requesting an instance in multiple segments. It tries to lower the latency caused by the weakness of HTTP protocol. NOTE: some sites may not work with PMM enabled. +First PMM segment size (in bytes) +Size of the first PMM segment. If not defined, it defaults to twice the PMM segment size. +PMM segments size (in bytes) +To enable PMM, PMM segment size must be set to some positive value. + +