{"record":{"id":"cf56d5b9254fa748","repo":"shadow1ng/fscan","slug":"webscan-socks5-proxy-config-failed","errorCode":"webscan_socks5_proxy_config_failed","errorMessage":"webscan_socks5_proxy_config_failed: %w","messagePattern":"webscan_socks5_proxy_config_failed: %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"webscan/lib/Client.go","lineNumber":93,"sourceCode":"\t\t\tsocks5URL = \"socks5://\" + socks5URL\n\t\t}\n\n\t\tif parsedURL, err := url.Parse(socks5URL); err == nil {\n\t\t\tproxyConfig.Address = parsedURL.Host\n\t\t\tif parsedURL.User != nil {\n\t\t\t\tproxyConfig.Username = parsedURL.User.Username()\n\t\t\t\tif password, hasPassword := parsedURL.User.Password(); hasPassword {\n\t\t\t\t\tproxyConfig.Password = password\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tproxyConfig.Address = networkConfig.Socks5Proxy\n\t\t}\n\n\t\tproxyManager := proxy.NewProxyManager(proxyConfig)\n\t\tproxyDialer, err := proxyManager.GetDialer()\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"%s: %w\", i18n.GetText(\"webscan_socks5_proxy_config_failed\"), err)\n\t\t}\n\t\ttr.DialContext = proxyDialer.DialContext\n\t\treturn nil\n\t}\n\n\t// 其次使用HTTP代理（优先级低于SOCKS5）\n\thttpProxyURL := networkConfig.HTTPProxy\n\tif httpProxyURL == \"\" && legacyProxy != \"\" {\n\t\t// 兼容旧参数DownProxy\n\t\thttpProxyURL = legacyProxy\n\t}\n\n\tif httpProxyURL != \"\" {\n\t\t// 处理快捷代理配置\n\t\tif httpProxyURL == ProxyShortcutBurp {\n\t\t\thttpProxyURL = ProxyBurpURL\n\t\t} else if httpProxyURL == ProxyShortcutSocks5 {\n\t\t\thttpProxyURL = ProxySocks5URL","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/shadow1ng/fscan/blob/95cc12e753bf43de7004e5aef42a9ffba3934303/webscan/lib/Client.go#L75-L111","documentation":"Guard in configureHTTPProxy: the SOCKS5 proxy settings were parsed but proxy.NewProxyManager(...).GetDialer() failed, so no dialer could be constructed for the configured SOCKS5 proxy and the HTTP transport cannot be built with SOCKS5 support.","triggerScenarios":"Thrown at webscan/lib/Client.go:93 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the SOCKS5 proxy address, username, and password","Test the proxy with an external client to confirm it is reachable","Fall back to direct connection if the proxy is optional"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95cc12e753bf43de7004e5aef42a9ffba3934303","analyzedAt":"2026-09-06T17:07:30.094Z","contentChangedAt":"2026-09-06T17:07:30.094Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}