1 Star 1 Fork 0

masx200 / deno-dns-over-https-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
DNSRecordClass.ts 735 Bytes
一键复制 编辑 原始数据 按行查看 历史
masx200 提交于 2024-02-22 12:25 . reply_dns_query
/** A Resource Record for CNAMEs. */
// export class CNameResourceRecord extends ResourceRecord {
// /** The CNAME alias. */
// CName = "";
// get Payload(): Uint8Array {
// const result = new Uint8Array(this.CName.length + 2);
// const view = new DataView(result.buffer);
// let index = 0;
// for (const part of this.CName.split(".")) {
// view.setUint8(index, part.length);
// for (let i = 0; i < part.length; i++) {
// view.setUint8(index + 1 + i, part.charCodeAt(i));
// }
// index = index + 1 + part.length;
// }
// return result;
// }
// }
export enum DNSRecordClass {
UNKNOWN = 0,
IN = 1,
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/masx200/deno-dns-over-https-server.git
git@gitee.com:masx200/deno-dns-over-https-server.git
masx200
deno-dns-over-https-server
deno-dns-over-https-server
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891