(_https_proxy)
| 54 | return "socks5" if protocol in {"socks", "socks5"} else "http" |
| 55 | |
| 56 | def input_https_proxy(_https_proxy): |
| 57 | normalized_proxy = _serialize_proxy_text(_https_proxy) |
| 58 | ConfigDB.insert("https_proxy", normalized_proxy) |
| 59 | gr.Info("代理配置已保存。") |
| 60 | return gr.update(value=_format_proxy_text(normalized_proxy)) |
| 61 | |
| 62 | def clear_https_proxy(): |
| 63 | ConfigDB.insert("https_proxy", "") |
nothing calls this directly
no test coverage detected