move ProxyConfig to proxmox_http

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler authored and Dietmar Maurer committed 2021-05-17 10:31:27 +02:00
1 parent 3ed7e87538
commit 4229633d98
5 files changed
+10 -85

No files matched your search

+1 -1
View File
@@ -1660,7 +1660,7 @@ pub struct NodeStatus {
pub const HTTP_PROXY_SCHEMA: Schema = StringSchema::new(
"HTTP proxy configuration [http://]<host>[:port]")
.format(&ApiStringFormat::VerifyFn(|s| {
crate::tools::http::ProxyConfig::parse_proxy_url(s)?;
proxmox_http::http::ProxyConfig::parse_proxy_url(s)?;
Ok(())
}))
.min_length(1)