chore(quark_uc): webdav_policy default to native_proxy

This commit is contained in:
j2rong4cn
2025-07-04 19:06:40 +08:00
parent 9557834342
commit 92f396df10

View File

@ -37,10 +37,11 @@ func (d *QuarkOrUC) GetAddition() driver.Additional {
func (d *QuarkOrUC) Init(ctx context.Context) error {
_, err := d.request("/config", http.MethodGet, nil, nil)
if err == nil {
if d.AdditionVersion != 1 {
d.AdditionVersion = 1
if !d.UseTransCodingAddress {
if d.AdditionVersion != 2 {
d.AdditionVersion = 2
if !d.UseTransCodingAddress && len(d.DownProxyUrl) == 0 {
d.WebProxy = true
d.WebdavPolicy = "native_proxy"
}
}
}