mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-20 09:37:58 +01:00
Do not set com.sun.jndi.dns.DnsContextFactory in JavaxResolver
as this is not accessible in newer Java versions (at least 11). Fixes SMACK-856.
This commit is contained in:
parent
78dcaec75b
commit
ac9641f091
1 changed files with 2 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2013-2018 Florian Schmaus
|
||||
* Copyright 2013-2019 Florian Schmaus
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -18,7 +18,6 @@ package org.jivesoftware.smack.util.dns.javax;
|
|||
|
||||
import java.net.InetAddress;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Hashtable;
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
|
||||
|
@ -52,9 +51,7 @@ public class JavaxResolver extends DNSResolver implements SmackInitializer {
|
|||
|
||||
static {
|
||||
try {
|
||||
Hashtable<String, String> env = new Hashtable<>();
|
||||
env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");
|
||||
dirContext = new InitialDirContext(env);
|
||||
dirContext = new InitialDirContext();
|
||||
} catch (Exception e) {
|
||||
// Ignore.
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue