mirror of
https://github.com/1andrevich/homeproxy-hiddify.git
synced 2026-08-09 00:37:18 +00:00
fix(generator/client): fix parse IPv6 address in DNS server
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
a3d09787d4
commit
0686d61e01
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ function parse_dnserver(server_addr, default_protocol) {
|
|||
return null;
|
||||
|
||||
if (!match(server_addr, /:\/\//))
|
||||
server_addr = (default_protocol || 'udp') + '://' + server_addr;
|
||||
server_addr = (default_protocol || 'udp') + '://' + (validation('ip6addr', dns_server) ? `[${dns_server}]` : dns_server);
|
||||
server_addr = parseURL(server_addr);
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue