//
//  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: IPPacketView) -> Bool {
        return ipPacket.header.destination == dnsDestIpAddr
    }
    
}
