diff --git a/net/proxy_resolution/proxy_config_service_ohos.cc b/net/proxy_resolution/proxy_config_service_ohos.cc index 0449a48431d5e01b952613a7fa55740451693e45..225d019f96bb709ec8ce6961b1e24754231cc996 100644 --- a/net/proxy_resolution/proxy_config_service_ohos.cc +++ b/net/proxy_resolution/proxy_config_service_ohos.cc @@ -136,6 +136,8 @@ bool GetProxyRules(const GetPropertyCallback& get_property, AddBypassRules("ftp", get_property, &rules->bypass_rules); AddBypassRules("http", get_property, &rules->bypass_rules); AddBypassRules("https", get_property, &rules->bypass_rules); + AddBypassRules("ws", get_property, &rules->bypass_rules); + AddBypassRules("wss", get_property, &rules->bypass_rules); // We know a proxy was found if not all of the proxy lists are empty. return !(rules->proxies_for_http.IsEmpty() && rules->proxies_for_https.IsEmpty() && @@ -186,7 +188,8 @@ std::string GetProperty(const std::string& property) { return FixupProxyHostScheme(host); } else if (property == "http.proxyPort" || property == "https.proxyPort") { return std::to_string(port); - } else if (property == "http.nonProxyHosts" || property == "https.nonProxyHosts") { + } else if (property == "http.nonProxyHosts" || property == "https.nonProxyHosts" || + property == "ws.nonProxyHosts" || property == "wss.nonProxyHosts" ) { return exclusion; }