pptpd: use boolean options

Use boolean options and fix the relevant init error.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
This commit is contained in:
Vladislav Grigoryev 2023-11-03 11:36:10 +03:00 committed by Tianling Shen
parent 298fd20375
commit 706675cbce
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pptpd
PKG_VERSION:=1.4.0
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/poptop

View File

@ -18,11 +18,11 @@ validate_login_section() {
validate_pptpd_section() {
uci_load_validate pptpd service "$1" "$2" \
'enabled:uinteger' \
'enabled:bool:1' \
'localip:string' \
'remoteip:string' \
'mppe:list(string):required no40 no56 stateless' \
'logwtmp:uinteger'
'logwtmp:bool:0'
}
setup_login() {