From 7e3ddf387783923e39710a1accdc57d2d27351f3 Mon Sep 17 00:00:00 2001 From: PeratX <1215714524@qq.com> Date: Thu, 25 May 2017 21:37:44 +0800 Subject: [PATCH] Updated LogFragment --- .../daedalus/provider/UdpDnsProvider.java | 4 ++-- app/src/main/res/layout/fragment_log.xml | 22 +++++++++++++------ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/org/itxtech/daedalus/provider/UdpDnsProvider.java b/app/src/main/java/org/itxtech/daedalus/provider/UdpDnsProvider.java index ca79007..4ca021f 100644 --- a/app/src/main/java/org/itxtech/daedalus/provider/UdpDnsProvider.java +++ b/app/src/main/java/org/itxtech/daedalus/provider/UdpDnsProvider.java @@ -343,7 +343,7 @@ public class UdpDnsProvider extends DnsProvider { try { String response; if ((response = RulesResolver.resolve(dnsQueryName)) != null) { - Logger.info("DnsProvider: Resolved " + dnsQueryName + ". Local resolver response: " + response); + Logger.info("DnsProvider: Resolved " + dnsQueryName + " Local resolver response: " + response); DNSMessage.Builder builder = dnsMsg.asBuilder(); int[] ip = new int[4]; byte i = 0; @@ -354,7 +354,7 @@ public class UdpDnsProvider extends DnsProvider { builder.addAnswer(new Record<>(dnsQueryName, Record.TYPE.getType(A.class), 1, 64, new A(ip[0], ip[1], ip[2], ip[3]))); handleDnsResponse(parsedPacket, builder.build().toArray()); } else { - Logger.info("DnsProvider: Resolving " + dnsQueryName + ". Sending to " + destAddr); + Logger.info("DnsProvider: Resolving " + dnsQueryName + " Sending to " + destAddr); DatagramPacket outPacket = new DatagramPacket(dnsRawData, 0, dnsRawData.length, destAddr, DnsServerHelper.getPortOrDefault(destAddr, parsedUdp.getHeader().getDstPort().valueAsInt())); forwardPacket(outPacket, parsedPacket); diff --git a/app/src/main/res/layout/fragment_log.xml b/app/src/main/res/layout/fragment_log.xml index db72af0..6cbee64 100644 --- a/app/src/main/res/layout/fragment_log.xml +++ b/app/src/main/res/layout/fragment_log.xml @@ -1,13 +1,21 @@ - - - + android:layout_height="wrap_content"> - \ No newline at end of file + + + + \ No newline at end of file