MCPcopy
hub / github.com/mikumifa/biliTickerBuy / input_https_proxy

Function input_https_proxy

tab/config.py:56–60  ·  view source on GitHub ↗
(_https_proxy)

Source from the content-addressed store, hash-verified

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", "")

Callers

nothing calls this directly

Calls 4

_serialize_proxy_textFunction · 0.85
_format_proxy_textFunction · 0.85
insertMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected