🚧 support proxy

This commit is contained in:
微凉
2021-12-08 20:00:52 +08:00
parent 09e63027d9
commit 236f9969c0
4 changed files with 42 additions and 15 deletions

View File

@ -61,12 +61,19 @@ func GetDrivers() map[string][]Item {
res[k] = v.Items()
} else {
res[k] = append([]Item{
//{
// Name: "allow_proxy",
// Label: "allow_proxy",
// Type: TypeBool,
// Required: true,
// Description: "allow proxy",
//},
{
Name: "proxy",
Label: "proxy",
Type: TypeBool,
Required: true,
Description: "allow proxy",
Description: "web proxy",
},
{
Name: "webdav_proxy",
@ -77,6 +84,13 @@ func GetDrivers() map[string][]Item {
},
}, v.Items()...)
}
res[k] = append(res[k], Item{
Name: "proxy_url",
Label: "proxy_url",
Type: TypeString,
Required: false,
Description: "proxy url",
})
}
return res
}