add support for cdn ipv6 address

pull/1030/head
xingyuan li 2024-05-13 01:12:31 +08:00 committed by GitHub
parent 833893593f
commit 3cc42204e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ readConfigHostPathUUID() {
fi
fi
if [[ -f "/etc/v2ray-agent/cdn" ]] && grep -q "address" "/etc/v2ray-agent/cdn"; then
currentCDNAddress=$(grep "address" "/etc/v2ray-agent/cdn" | awk -F "[:]" '{print $2}')
currentCDNAddress=$(grep "address" "/etc/v2ray-agent/cdn" | awk -F "[:]" '{print substr($0, index($0, $2))}')
else
currentCDNAddress="${currentHost}"
fi