fix: Uses a regular HashSet.
This commit is contained in:
parent
d0587e99e6
commit
9c8d22a5bd
@ -52,9 +52,7 @@ public class ComponentSocket
|
|||||||
* from. These should be the addresses which we have confirmed (e.g. by
|
* from. These should be the addresses which we have confirmed (e.g. by
|
||||||
* having received a STUN message with correct authentication fields).
|
* having received a STUN message with correct authentication fields).
|
||||||
*/
|
*/
|
||||||
private Set<SocketAddress> authorizedAddresses
|
private Set<SocketAddress> authorizedAddresses = new HashSet<>();
|
||||||
= Collections.newSetFromMap(
|
|
||||||
new ConcurrentHashMap<SocketAddress, Boolean>());
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The owning {@link Component}.
|
* The owning {@link Component}.
|
||||||
@ -110,9 +108,7 @@ public class ComponentSocket
|
|||||||
|
|
||||||
logger.info("Adding allowed address: " + address);
|
logger.info("Adding allowed address: " + address);
|
||||||
|
|
||||||
Set<SocketAddress> newSet
|
Set<SocketAddress> newSet = new HashSet<>();
|
||||||
= Collections.newSetFromMap(
|
|
||||||
new ConcurrentHashMap<SocketAddress, Boolean>());
|
|
||||||
newSet.addAll(authorizedAddresses);
|
newSet.addAll(authorizedAddresses);
|
||||||
newSet.add(address);
|
newSet.add(address);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user