Added support for remote DNS query over socks5h proxy. #2839

This commit is contained in:
morpheus65535 2025-01-29 08:10:30 -05:00
parent fe7b224916
commit bdbe946be2
2 changed files with 6 additions and 2 deletions

View file

@ -225,7 +225,7 @@ validators = [
# proxy section
Validator('proxy.type', must_exist=True, default=None, is_type_of=(NoneType, str),
is_in=[None, 'socks5', 'http']),
is_in=[None, 'socks5', 'socks5h', 'http']),
Validator('proxy.url', must_exist=True, default='', is_type_of=str),
Validator('proxy.port', must_exist=True, default='', is_type_of=(str, int)),
Validator('proxy.username', must_exist=True, default='', is_type_of=str, cast=str),

View file

@ -13,9 +13,13 @@ export const securityOptions: SelectorOption<string>[] = [
export const proxyOptions: SelectorOption<string>[] = [
{
label: "Socks5",
label: "Socks5 (local DNS)",
value: "socks5",
},
{
label: "Socks5h (remote DNS)",
value: "socks5h",
},
{
label: "HTTP(S)",
value: "http",