improve proxy type matching

Co-authored-by: nekno <nekno@users.noreply.github.com>
This commit is contained in:
eladyn 2022-04-21 14:09:38 +02:00 committed by GitHub
parent 0ef50dd2f0
commit 0b869a139a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,7 +198,7 @@ window.assignManager = {
}
// proxyDNS only works for SOCKS proxies
if (result.proxy.type === "socks" || result.proxy.type === "socks4" ) {
if (["socks", "socks4"].includes(result.proxy.type)) {
result.proxy.proxyDNS = true;
}