From 6f66b31fb7e5dd14f76164561482e10b53d70282 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 28 Dec 2016 23:42:30 +0100 Subject: [PATCH] Set default subscription mode to "reject all" In order to make the defaults of Smack more secure. --- .../src/main/java/org/jivesoftware/smack/roster/Roster.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java index 4cefb6130..dc73329ba 100644 --- a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java +++ b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java @@ -128,9 +128,9 @@ public final class Roster extends Manager { /** * 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