private async void W_DnsPacketPoped(object sender, byte[] e, uint addr, ushort port) { try { var res = await dnsServer.QueryAsync(e).ConfigureAwait(false); await executeLwipTask(() => w.PushDnsPayload(addr, port, res)); } catch (Exception) { // DNS timeout? } }
async private void W_DnsPacketPoped(object sender, byte[] e, uint addr, ushort port) { try { var res = await dnsServer.QueryAsync(e); executeLwipTask(() => w.PushDnsPayload(addr, port, new List <byte>(res).ToArray())); } catch (Exception) { // DNS timeout? } }