luci-app-speederv2: fix ipv6 "Server IP" format issue

This commit is contained in:
CN_SZTL 2020-05-16 18:33:25 +08:00
parent ac80e7a6e4
commit ccfcb2d090
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -70,6 +70,9 @@ start_instance() {
return 1
fi
/sbin/validate_data "ip6addr" "$server_ip" >/dev/null 2>&1
[ $? -eq 0 ] && server_ip="[$server_ip]"
procd_open_instance
procd_set_param command /usr/bin/speederv2
procd_append_param command -c