diff --git a/FastGithub.PacketIntercept/Dns/DnsInterceptor.cs b/FastGithub.PacketIntercept/Dns/DnsInterceptor.cs
index 0e47414..ce7c3b6 100644
--- a/FastGithub.PacketIntercept/Dns/DnsInterceptor.cs
+++ b/FastGithub.PacketIntercept/Dns/DnsInterceptor.cs
@@ -149,16 +149,9 @@ namespace FastGithub.PacketIntercept.Dns
result.UdpHeader->Length = (ushort)(sizeof(UdpHeader) + responsePayload.Length);
addr.Flags |= WinDivertAddressFlag.Impostor;
- if (addr.Flags.HasFlag(WinDivertAddressFlag.Loopback))
- {
- addr.Flags |= WinDivertAddressFlag.Outbound;
- }
- else
- {
- addr.Flags &= ~WinDivertAddressFlag.Outbound;
- }
-
+ packet.CalcOutboundFlag(addr);
packet.CalcChecksums(addr);
+
this.logger.LogInformation($"{domain}->{loopback}");
}
diff --git a/FastGithub.PacketIntercept/FastGithub.PacketIntercept.csproj b/FastGithub.PacketIntercept/FastGithub.PacketIntercept.csproj
index 890c1ee..3b01562 100644
--- a/FastGithub.PacketIntercept/FastGithub.PacketIntercept.csproj
+++ b/FastGithub.PacketIntercept/FastGithub.PacketIntercept.csproj
@@ -7,7 +7,7 @@
-
+