luci/modules/luci-mod-admin-full/luasrc
Marc Benoit fbeea4ee33 luci-mod-admin-full: limit dns cachesize to 10000
The value of cachesize is hardcoded to 10000 in
dnsmasq-2.79/src/option.c to 10000 max

    case 'c':  /* --cache-size */
      {
        int size;

        if (!atoi_check(arg, &size))
          ret_err(gen_err);
        else
          {
            /* zero is OK, and means no caching. */

            if (size < 0)
              size = 0;
            else if (size > 10000)
              size = 10000;

            daemon->cachesize = size;
          }
        break;
      }

Tested on Netgear R7800
Signed-off-by: Marc Benoit <marcb62185@gmail.com>
2018-04-09 20:51:14 -04:00
..
controller/admin luci-mod-admin-full: dispatch SimpleForm models using the form() action 2018-04-06 12:10:16 +02:00
model/cbi luci-mod-admin-full: limit dns cachesize to 10000 2018-04-09 20:51:14 -04:00
view luci-mod-admin-full: escape display parameter 2018-04-05 23:03:01 +02:00