From: Matthieu Schneider Date: Tue, 31 Oct 2017 13:30:52 +0000 (+0300) Subject: [FEATURE] Add new option: upload_ip_nopassword X-Git-Tag: 4.0.0~23 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/359e956710a9f4b151c86181affd012926aed8a5?ds=inline;hp=43f7da4085de0635f3f4d9d2bd43b8e638d491a1 [FEATURE] Add new option: upload_ip_nopassword --- diff --git a/lib/config.original.php b/lib/config.original.php index a81b207..30440a2 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -84,6 +84,14 @@ $cfg['upload_password'] = array(); */ $cfg['upload_ip'] = array(); +/* List of IP allowed to upload a file without password. + * If the list is empty, then there is no upload restriction based on IP. + * Elements of the list can be a single IP (e.g. "123.45.67.89") or + * an IP range (e.g. "123.45.0.0/16"). + * Note that CIDR notation is available for IPv4 only for the moment. + */ +$cfg['upload_ip_nopassword'] = array(); + /* Password for the admin interface. * An empty password will disable the password authentification. * The password is a sha256 hash of the original version.