Skip to content

Trusted domain entry 11 invalid in ipv6 environment #2060

@CarlosCastaneda

Description

@CarlosCastaneda

Trusted Domain entry 11 is invalid when IPv6 is used.

pub_ip="$(curl -m4 icanhazip.com 2>/dev/null)"

[[ "$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

  1. if ipv6 is returned then the value should be enclosed in brackets „[]“ when set (line 16)
  2. run curl -4 icanhazip.com in order to always return ipv4 (line 14)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions