Skip to content

Commit

Permalink
luci-app-alist: allow only one protocol to avoid listening on multipl…
Browse files Browse the repository at this point in the history
…e ports

* The introduction of separate HTTP/HTTPS protocols with dedicated ports in alist v3.19.0 is meaningless behavior on OpenWrt.
  • Loading branch information
sbwml committed Jun 18, 2023
1 parent 4c1f9b0 commit a86f0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luci-app-alist/root/etc/init.d/alist
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ start_service() {
set_firewall
cat /dev/null > $temp_dir/alist.log
cat > $CONFIG_DIR/config.json <<EOF
{"force":false,"address":"$listen_addr","port":$port,"cdn":"","jwt_secret":"","token_expires_in":$token_expires_in,"database":{"type":"sqlite3","host":"","port":0,"user":"","password":"","name":"","db_file":"/etc/alist/data.db","table_prefix":"x_","ssl_mode":""},"scheme":{"https":$SSL,"cert_file":"$ssl_cert","key_file":"$ssl_key"},"temp_dir":"$temp_dir","log":{"enable":$LOG,"name":"$temp_dir/alist.log","max_size":10,"max_backups":5,"max_age":28,"compress":false},"max_connections":$max_connections}
{"force":false,"address":"$listen_addr","port":$port,"https_port":$port,"cdn":"","jwt_secret":"","token_expires_in":$token_expires_in,"database":{"type":"sqlite3","host":"","port":0,"user":"","password":"","name":"","db_file":"/etc/alist/data.db","table_prefix":"x_","ssl_mode":""},"scheme":{"disable_http":$SSL,"https":$SSL,"cert_file":"$ssl_cert","key_file":"$ssl_key"},"temp_dir":"$temp_dir","log":{"enable":$LOG,"name":"$temp_dir/alist.log","max_size":10,"max_backups":5,"max_age":28,"compress":false},"max_connections":$max_connections}
EOF
procd_open_instance alist
procd_set_param command $PROG
Expand Down

0 comments on commit a86f0ee

Please sign in to comment.