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