punchnet-macos/Tun/Punchnet/DNS/DNSHelper.swift
2026-04-10 11:19:37 +08:00

20 lines
441 B
Swift

//
// Helper.swift
// punchnet
//
// Created by on 2026/4/10.
//
import Foundation
struct DNSHelper {
static let dnsServer: String = "100.100.100.100"
// dns
static let dnsDestIpAddr: UInt32 = 1684300900
// dns
static func isDnsRequestPacket(ipPacket: IPPacket) -> Bool {
return ipPacket.header.destination == dnsDestIpAddr
}
}