Comparison

plugins/mod_auth_anonymous.lua @ 4834:878f75ccc4fb

mod_s2s, mod_auth_anonymous, hostmanager: Remove disallow_s2s flag, deprecate the config option of the same name (disable mod_s2s instead), and add 'allow_anonymous_s2s' to separately control s2s for anonymous users
author Matthew Wild <mwild1@gmail.com>
date Fri, 11 May 2012 00:56:18 +0100
parent 4821:deec69fc33e5
child 4846:3bc3498df0a0
comparison
equal deleted inserted replaced
4833:b7a6e86ab87d 4834:878f75ccc4fb
49 return false; 49 return false;
50 end 50 end
51 return username, host, datastore, data; 51 return username, host, datastore, data;
52 end 52 end
53 53
54 if module:get_option_boolean("disallow_s2s", true) then 54 if not module:get_option_boolean("allow_anonymous_s2s", false) then
55 module:hook("route/remote", function (event) 55 module:hook("route/remote", function (event)
56 return false; -- Block outgoing s2s from anonymous users 56 return false; -- Block outgoing s2s from anonymous users
57 end, 300); 57 end, 300);
58 end 58 end
59 59