Comparison

plugins/mod_auth_anonymous.lua @ 4844:3d1ca811eee3

Backed out changeset 661752889535 - obsoleted by 878f75ccc4fb.
author Matthew Wild <mwild1@gmail.com>
date Fri, 11 May 2012 01:46:35 +0100
parent 4838:661752889535
child 4846:3bc3498df0a0
comparison
equal deleted inserted replaced
4838:661752889535 4844:3d1ca811eee3
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 module:get_option_boolean("disallow_s2s", true) then
55 hosts[module.host].disallow_s2s = true;
56 module:hook("route/remote", function (event) 55 module:hook("route/remote", function (event)
57 return false; -- Block outgoing s2s from anonymous users 56 return false; -- Block outgoing s2s from anonymous users
58 end, 300); 57 end, 300);
59 end 58 end
60 59