Trusted domain entry 11 invalid in ipv6 environment

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Closed

Assignees

theCalcaholic

@CarlosCastaneda

Description

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