Updated LogFragment
This commit is contained in:
parent
620933d44c
commit
7e3ddf3877
@ -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);
|
||||
|
@ -1,13 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.CoordinatorLayout
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/fragment_log"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView_log"
|
||||
<RelativeLayout
|
||||
android:id="@+id/fragment_log"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
<TextView
|
||||
android:id="@+id/textView_log"
|
||||
android:textIsSelectable="true"
|
||||
android:layout_marginLeft="@dimen/margin_small"
|
||||
android:layout_marginRight="@dimen/margin_small"
|
||||
android:layout_marginTop="@dimen/margin_small"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</RelativeLayout>
|
||||
</ScrollView>
|
Loading…
Reference in New Issue
Block a user