We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7622ed + 19e6d5f commit b4210d4Copy full SHA for b4210d4
bin/nextcloud-domain.sh
@@ -11,9 +11,12 @@ done
11
# wicd service finishes before completing DHCP
12
while :; do
13
local_ip="$(get_ip)"
14
- pub_ip="$(curl -m4 icanhazip.com 2>/dev/null)"
15
16
- [[ "$pub_ip" != "" ]] && ncc config:system:set trusted_domains 11 --value="$pub_ip"
+ pub_ipv4="$(curl -4 -m4 icanhazip.com 2>/dev/null)"
+ pub_ipv6="$(curl -6 -m4 icanhazip.com 2>/dev/null)"
17
+ [[ -z "$pub_ipv4" ]] || ncc config:system:set trusted_domains 11 --value="$pub_ipv4"
18
+ [[ -z "$pub_ipv6" ]] || ncc config:system:set trusted_domains 12 --value="[$pub_ipv6]"
19
+
20
[[ "$local_ip" != "" ]] && break
21
22
sleep 3
0 commit comments