Skip to content

Commit 84bf625

Browse files
authored
Merge pull request #16 from vollate/main
fix: legacy doh3 config
2 parents fefb33e + 05aaf8e commit 84bf625

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/utils/generator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,10 @@ const generateDns = (
329329
export const generateDnsServerURL = (dnsServer: IDNSServer) => {
330330
const { type, server_port, path, server, interface: _interface } = dnsServer
331331
let address = ''
332-
if ([DnsServer.Https, DnsServer.H3].includes(type as any)) {
332+
if (type == DnsServer.Https) {
333333
address = `https://${server}${server_port ? ':' + server_port : ''}${path ? path : ''}`
334+
} else if (type == DnsServer.H3) {
335+
address = `h3://${server}${server_port ? ':' + server_port : ''}${path ? path : ''}`
334336
} else if (type == DnsServer.Dhcp) {
335337
address = `dhcp://${_interface}`
336338
} else if (type == DnsServer.FakeIP) {

0 commit comments

Comments
 (0)