aliyundrive-webdav: update to 2.2.1 (#682)

sync upstream
This commit is contained in:
Saxon 2023-04-30 18:52:03 +08:00 committed by GitHub
parent 5e4114ec08
commit aea60b5432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -1,8 +1,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=aliyundrive-webdav
PKG_VERSION:=1.11.0
PKG_RELEASE:=$(AUTORELEASE)
PKG_VERSION:=2.2.1
PKG_RELEASE:=1
PKG_LICENSE:=MIT
PKG_MAINTAINER:=messense <messense@icloud.com>

View File

@ -17,3 +17,4 @@ config server
option tls_key ''
option skip_upload_same_size '0'
option prefer_http_download '0'
option redirect '1'

View File

@ -59,6 +59,13 @@ start_service() {
*) ;;
esac
case "$(uci_get_by_type server redirect 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --redirect"
;;
*) ;;
esac
if [[ ! -z "$tls_cert" && ! -z "$tls_key" ]]; then
extra_options="$extra_options --tls-cert $tls_cert --tls-key $tls_key"
fi