-
-
Notifications
You must be signed in to change notification settings - Fork 316
Closed
Labels
Description
Trusted Domain entry 11 is invalid when IPv6 is used.
nextcloudpi/bin/nextcloud-domain.sh
Line 14 in 2ada653
| pub_ip="$(curl -m4 icanhazip.com 2>/dev/null)" |
nextcloudpi/bin/nextcloud-domain.sh
Line 16 in 2ada653
| [[ "$pub_ip" != "" ]] && ncc config:system:set trusted_domains 11 --value="$pub_ip" |
Option -m4 seems to be undefined, hence curl -m4 icanhazip.com always returns IPv6.
Solution
- if ipv6 is returned then the value should be enclosed in brackets „[]“ when set (line 16)
- run
curl -4 icanhazip.comin order to always return ipv4 (line 14)