mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Chore: make sure random DoH Servers are different
This commit is contained in:
7
Build/mod.d.ts
vendored
7
Build/mod.d.ts
vendored
@@ -1,9 +1,9 @@
|
||||
import 'dns2';
|
||||
|
||||
declare module 'dns2' {
|
||||
import DNS from 'dns2';
|
||||
import DNS2 from 'dns2';
|
||||
|
||||
declare namespace DNS {
|
||||
declare namespace DNS2 {
|
||||
interface DoHClientOption {
|
||||
/** @example dns.google.com */
|
||||
dns: string,
|
||||
@@ -13,6 +13,7 @@ declare module 'dns2' {
|
||||
get?: (url: string) => any
|
||||
}
|
||||
|
||||
export type PacketQuestion = keyof typeof Packet.TYPE;
|
||||
export type DnsResolver<T = DnsResponse> = (name: string, type: PacketQuestion) => Promise<T>;
|
||||
|
||||
declare function DOHClient(opt: DoHClientOption): DnsResolver;
|
||||
@@ -20,5 +21,5 @@ declare module 'dns2' {
|
||||
export type $DnsResponse = DnsResponse;
|
||||
}
|
||||
|
||||
export = DNS;
|
||||
export = DNS2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user