diff options
-rw-r--r-- | applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua | 10 | ||||
-rw-r--r-- | applications/luci-polipo/luasrc/i18n/polipo.en.xml | 49 |
2 files changed, 51 insertions, 8 deletions
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 @@ +<?xml version="1.0" encoding="utf-8"?> + +<i18n:msgs xmlns:i18n="http://luci.freifunk-halle.net/2008/i18n#" xmlns="http://www.w3.org/1999/xhtml"> + +<i18n:msg xml:id="polipo">Polipo</i18n:msg> +<i18n:msg xml:id="polipo_cache">On-Disk Cache</i18n:msg> +<i18n:msg xml:id="polipo_cache_cacheisshared">Shared cache</i18n:msg> +<i18n:msg xml:id="polipo_cache_cacheisshared_desc">Enable if cache (proxy) is shared by multiple users.</i18n:msg> +<i18n:msg xml:id="polipo_cache_desc">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).</i18n:msg> +<i18n:msg xml:id="polipo_cache_diskcacheroot">Disk cache location</i18n:msg> +<i18n:msg xml:id="polipo_cache_diskcacheroot_desc">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.</i18n:msg> +<i18n:msg xml:id="polipo_cache_diskcachetruncatesize">Truncate cache files size (in bytes)</i18n:msg> +<i18n:msg xml:id="polipo_cache_diskcachetruncatesize_desc">Size to which cached files should be truncated. (default value: 1048576)</i18n:msg> +<i18n:msg xml:id="polipo_cache_diskcachetruncatetime">Truncate cache files time</i18n:msg> +<i18n:msg xml:id="polipo_cache_diskcachetruncatetime_desc">Time after which cached files will be truncated. (default value: 4d12h)</i18n:msg> +<i18n:msg xml:id="polipo_cache_diskcacheunlinktime">Delete cache files time</i18n:msg> +<i18n:msg xml:id="polipo_cache_diskcacheunlinktime_desc">Time after which cached files will be deleted. (default value: 32d)</i18n:msg> +<i18n:msg xml:id="polipo_desc">Polipo is a small and fast caching web proxy.</i18n:msg> +<i18n:msg xml:id="polipo_general">General</i18n:msg> +<i18n:msg xml:id="polipo_general_allowedclients">Allowed clients</i18n:msg> +<i18n:msg xml:id="polipo_general_allowedclients_desc">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)).</i18n:msg> +<i18n:msg xml:id="polipo_general_chunkhighmark">In RAM cache size (in bytes)</i18n:msg> +<i18n:msg xml:id="polipo_general_chunkhighmark_desc">How much RAM should Polipo use for its cache.</i18n:msg> +<i18n:msg xml:id="polipo_general_dnsnameserver">DNS server address</i18n:msg> +<i18n:msg xml:id="polipo_general_dnsnameserver_desc">Set the DNS server address to use, if you want Polipo to use different DNS server than the host system.</i18n:msg> +<i18n:msg xml:id="polipo_general_dnsqueryipv6">Query DNS for IPv6</i18n:msg> +<i18n:msg xml:id="polipo_general_dnsqueryipv6_desc">false = Do not query IPv6; reluctantly = Query both, prefer IPv4; happily = Query both, prefer IPv6; true = Query only IPv6</i18n:msg> +<i18n:msg xml:id="polipo_general_dnsusegethostbyname">Query DNS by hostname</i18n:msg> +<i18n:msg xml:id="polipo_general_dnsusegethostbyname_desc">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</i18n:msg> +<i18n:msg xml:id="polipo_general_logfacility">Syslog facility</i18n:msg> +<i18n:msg xml:id="polipo_general_logfile">Log file location</i18n:msg> +<i18n:msg xml:id="polipo_general_logfile_desc">Use of external storage device is recommended, because the log file is written frequently and can grow considerably.</i18n:msg> +<i18n:msg xml:id="polipo_general_logsyslog">Log to syslog</i18n:msg> +<i18n:msg xml:id="polipo_general_parentauthcredentials">Parent proxy authentication</i18n:msg> +<i18n:msg xml:id="polipo_general_parentauthcredentials_desc">Basic HTTP authentication supported. Provide username and password in username:password format.</i18n:msg> +<i18n:msg xml:id="polipo_general_parentproxy">Parent proxy address</i18n:msg> +<i18n:msg xml:id="polipo_general_parentproxy_desc">Parent proxy address (in host:port format), to which Polipo will forward the requests.</i18n:msg> +<i18n:msg xml:id="polipo_general_proxyaddress">Listen address</i18n:msg> +<i18n:msg xml:id="polipo_general_proxyaddress_desc">The interface on which Polipo will listen. To listen on all interfaces use 0.0.0.0 or :: (IPv6).</i18n:msg> +<i18n:msg xml:id="polipo_general_proxyport">Listen port</i18n:msg> +<i18n:msg xml:id="polipo_general_proxyport_desc">Port on which Polipo will listen. (default value: 8123)</i18n:msg> +<i18n:msg xml:id="polipo_pmm">Poor Man's Multiplexing</i18n:msg> +<i18n:msg xml:id="polipo_pmm_desc">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.</i18n:msg> +<i18n:msg xml:id="polipo_pmm_pmmfirstsize">First PMM segment size (in bytes)</i18n:msg> +<i18n:msg xml:id="polipo_pmm_pmmfirstsize_desc">Size of the first PMM segment. If not defined, it defaults to twice the PMM segment size.</i18n:msg> +<i18n:msg xml:id="polipo_pmm_pmmsize">PMM segments size (in bytes)</i18n:msg> +<i18n:msg xml:id="polipo_pmm_pmmsize_desc">To enable PMM, PMM segment size must be set to some positive value.</i18n:msg> + +</i18n:msgs> |