Set default subscription mode to "reject all"

In order to make the defaults of Smack more secure.
This commit is contained in:
Florian Schmaus 2016-12-28 23:42:30 +01:00
parent 3129165a1c
commit 6f66b31fb7
1 changed files with 2 additions and 2 deletions

View File

@ -128,9 +128,9 @@ public final class Roster extends Manager {
/** /**
* The default subscription processing mode to use when a Roster is created. By default * The default subscription processing mode to use when a Roster is created. By default
* all subscription requests are automatically accepted. * all subscription requests are automatically rejected.
*/ */
private static SubscriptionMode defaultSubscriptionMode = SubscriptionMode.accept_all; private static SubscriptionMode defaultSubscriptionMode = SubscriptionMode.reject_all;
/** /**
* The initial maximum size of the map holding presence information of entities without an Roster entry. Currently * The initial maximum size of the map holding presence information of entities without an Roster entry. Currently