TeaWeb/web/app/dns.ts

13 lines
565 B
TypeScript
Raw Normal View History

import {AddressTarget, ResolveOptions} from "tc-shared/dns";
2020-09-16 19:50:21 +00:00
import {ServerAddress} from "tc-shared/tree/Server";
import {resolveAddressIpv4, resolveTeaSpeakServerAddress} from "tc-backend/web/dns/resolver";
2020-03-30 11:44:18 +00:00
export function supported() { return true; }
export async function resolve_address(address: ServerAddress, options?: ResolveOptions) : Promise<AddressTarget> {
return await resolveTeaSpeakServerAddress(address, options);
}
export async function resolve_address_ipv4(address: string) : Promise<string> {
return await resolveAddressIpv4(address);
2020-03-30 11:44:18 +00:00
}