Commit a4cdca34 authored by Daniel Wolf's avatar Daniel Wolf

Fix error

parent a2906e46
Pipeline #7566 passed with stage
in 1 minute and 23 seconds
......@@ -53,7 +53,7 @@ abstract class AbstractTCPDnsHandle(val connectTimeout:Int = 2000): DnsHandle()
socket.close()
}
} catch (ex:IOException) {
if(originalEnvelope != null && socket != null) dnsPacketProxy?.processUpstreamResponse(deviceWriteToken, ReceivedAnswer(outgoingPacket.data, socket))
if(originalEnvelope != null && socket != null) dnsPacketProxy?.processUpstreamResponse(deviceWriteToken, ReceivedAnswer(outgoingPacket.data))
}
}
......
......@@ -43,7 +43,7 @@ abstract class AbstractUDPDnsHandle(): DnsHandle() {
}
} catch (ex:IOException) {
ex.printStackTrace()
if(originalEnvelope != null && socket != null) dnsPacketProxy?.processUpstreamResponse(deviceWriteToken, ReceivedAnswer(outgoingPacket.data, socket))
if(originalEnvelope != null && socket != null) dnsPacketProxy?.processUpstreamResponse(deviceWriteToken, ReceivedAnswer(outgoingPacket.data))
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment