🐛 fix only proxy webdav_direct
This commit is contained in:
parent
815975a4d2
commit
f2ec7884ec
@ -87,17 +87,19 @@ func GetDriversMap() map[string]Driver {
|
|||||||
func GetDrivers() map[string][]Item {
|
func GetDrivers() map[string][]Item {
|
||||||
res := make(map[string][]Item)
|
res := make(map[string][]Item)
|
||||||
for k, v := range driversMap {
|
for k, v := range driversMap {
|
||||||
|
webdavDirect := Item{
|
||||||
|
Name: "webdav_direct",
|
||||||
|
Label: "webdav direct",
|
||||||
|
Type: TypeBool,
|
||||||
|
Required: true,
|
||||||
|
Description: "Transfer the WebDAV of this account through the native",
|
||||||
|
}
|
||||||
if v.Config().OnlyProxy {
|
if v.Config().OnlyProxy {
|
||||||
res[k] = v.Items()
|
res[k] = append([]Item{
|
||||||
|
webdavDirect,
|
||||||
|
}, v.Items()...)
|
||||||
} else {
|
} else {
|
||||||
res[k] = append([]Item{
|
res[k] = append([]Item{
|
||||||
//{
|
|
||||||
// Name: "allow_proxy",
|
|
||||||
// Label: "allow_proxy",
|
|
||||||
// Type: TypeBool,
|
|
||||||
// Required: true,
|
|
||||||
// Description: "allow proxy",
|
|
||||||
//},
|
|
||||||
{
|
{
|
||||||
Name: "proxy",
|
Name: "proxy",
|
||||||
Label: "proxy",
|
Label: "proxy",
|
||||||
@ -112,13 +114,7 @@ func GetDrivers() map[string][]Item {
|
|||||||
Required: true,
|
Required: true,
|
||||||
Description: "Transfer the WebDAV of this account through the server",
|
Description: "Transfer the WebDAV of this account through the server",
|
||||||
},
|
},
|
||||||
{
|
webdavDirect,
|
||||||
Name: "webdav_direct",
|
|
||||||
Label: "webdav direct",
|
|
||||||
Type: TypeBool,
|
|
||||||
Required: true,
|
|
||||||
Description: "Transfer the WebDAV of this account through the native",
|
|
||||||
},
|
|
||||||
}, v.Items()...)
|
}, v.Items()...)
|
||||||
}
|
}
|
||||||
res[k] = append([]Item{
|
res[k] = append([]Item{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user