equal
deleted
inserted
replaced
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; |
55 module:hook("route/remote", function (event) |
56 module:hook("route/remote", function (event) |
56 return false; -- Block outgoing s2s from anonymous users |
57 return false; -- Block outgoing s2s from anonymous users |
57 end, 300); |
58 end, 300); |
58 end |
59 end |
59 |
60 |