diff options
author | Damian Minkov <damencho@jitsi.org> | 2015-03-21 10:23:55 +0200 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2015-03-21 10:47:19 +0200 |
commit | a630e9d50ea0aa53208256f9d80dfaeba7d04b18 (patch) | |
tree | 93b000569b5570bd139a439db6547ada94ba421e /src/net/java/sip/communicator/impl/dns | |
parent | c62041b6299551e6714a316a0d819c318fe9a1b6 (diff) | |
download | jitsi-a630e9d50ea0aa53208256f9d80dfaeba7d04b18.zip jitsi-a630e9d50ea0aa53208256f9d80dfaeba7d04b18.tar.gz jitsi-a630e9d50ea0aa53208256f9d80dfaeba7d04b18.tar.bz2 |
Updates dnsjava to 2.1.7 with included in upstream patch to set packet logger.
Diffstat (limited to 'src/net/java/sip/communicator/impl/dns')
-rw-r--r-- | src/net/java/sip/communicator/impl/dns/DnsJavaLogger.java | 7 | ||||
-rw-r--r-- | src/net/java/sip/communicator/impl/dns/DnsUtilActivator.java | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/impl/dns/DnsJavaLogger.java b/src/net/java/sip/communicator/impl/dns/DnsJavaLogger.java index 45617e9..bcf7982 100644 --- a/src/net/java/sip/communicator/impl/dns/DnsJavaLogger.java +++ b/src/net/java/sip/communicator/impl/dns/DnsJavaLogger.java @@ -18,7 +18,7 @@ import java.net.*; * @author Damian Minkov */ public class DnsJavaLogger - implements CustomLogger + implements PacketLogger { /** * The logger. @@ -49,9 +49,10 @@ public class DnsJavaLogger } @Override - public void log(SocketAddress local, + public void log(String prefix, + SocketAddress local, SocketAddress remote, - String prefix, byte[] data) + byte[] data) { // make sure that error here will not stop further processing try diff --git a/src/net/java/sip/communicator/impl/dns/DnsUtilActivator.java b/src/net/java/sip/communicator/impl/dns/DnsUtilActivator.java index f65c3e8..e9f044d 100644 --- a/src/net/java/sip/communicator/impl/dns/DnsUtilActivator.java +++ b/src/net/java/sip/communicator/impl/dns/DnsUtilActivator.java @@ -111,7 +111,7 @@ public class DnsUtilActivator if(Logger.getLogger("org.xbill").isTraceEnabled()) Options.set("verbose", "1"); - Lookup.setCustomLogger(new DnsJavaLogger()); + Lookup.setPacketLogger(new DnsJavaLogger()); if(loadDNSProxyForward()) { |