mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-21 11:20:49 +08:00
fix: remove scheme for windows
since it will break some application that get proxy information from system
This commit is contained in:
parent
8be0eb14d5
commit
f237e623cf
@ -212,7 +212,8 @@ namespace Qv2ray::components::proxy
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
QString __a = (hasHTTP ? "http://" : "socks5://") + address + ":" + QSTRN(hasHTTP ? httpPort : socksPort);
|
||||
const auto scheme = (hasHTTP ? "" : "socks5://");
|
||||
QString __a = scheme + address + ":" + QSTRN(hasHTTP ? httpPort : socksPort);
|
||||
|
||||
LOG(MODULE_PROXY, "Windows proxy string: " + __a)
|
||||
auto proxyStrW = new WCHAR[__a.length() + 1];
|
||||
|
Loading…
Reference in New Issue
Block a user