Skip to content

Commit c9df062

Browse files
committed
fix(v4.sh): correct port field in config parsing
See also: https://github.com/OpenListTeam/OpenList/blob/0673a7430223da2ad284250eb2d1b79109b4411c/internal/conf/config.go#L30 Signed-off-by: Elysia <a.elysia@proton.me>
1 parent 61392d6 commit c9df062

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

script/v4.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#
44
# OpenList Manage Script
55
#
6-
# Version: 1.3.3
7-
# Last Updated: 2025-09-29
6+
# Version: 1.3.4
7+
# Last Updated: 2026-02-17
88
#
99
# Description:
1010
# A management script for OpenList (https://github.com/OpenListTeam/OpenList)
@@ -1137,7 +1137,7 @@ RESET_PASSWORD() {
11371137
if [ -f "$INSTALL_PATH/data/config.json" ]; then
11381138
echo -e "\n${GREEN_COLOR}配置文件信息:${RES}"
11391139
if command -v jq >/dev/null 2>&1; then
1140-
jq -r '.scheme.address + ":" + (.scheme.port|tostring)' "$INSTALL_PATH/data/config.json" 2>/dev/null | head -1 | sed 's/^/访问地址: http:\/\//'
1140+
jq -r '.scheme.address + ":" + (.scheme.http_port|tostring)' "$INSTALL_PATH/data/config.json" 2>/dev/null | head -1 | sed 's/^/访问地址: http:\/\//'
11411141
else
11421142
echo "配置文件: $INSTALL_PATH/data/config.json"
11431143
fi

0 commit comments

Comments
 (0)