Make allocation listen to ipv4 and ipv6 with public host_network on nomad client

Dear community,
I’m currently running haproxy using nomad with a default private network and a public interface (like given example client Block - Agent Configuration | Nomad | HashiCorp Developer)

My nomad configuration is:

client {
  host_network "public" {
    interface = "ens3"
  }
)

My haproxy network configuration is:


    network {
      port "http" {
        static = 80
        to = 8080
        host_network = "public"
      }

      port "https" {
        static = 443
        to = 4433
        host_network = "public"
      }
    }

My public interface has an ipv4 and an ipv6.

My problem is that when nomad is starting the allocation, it is only listening to the public ipv4.

Is there any ways to make my allocation listen to both ipv4 and ipv6 ?
Thanks for your help

Found a solution:

I registered a second host_network public_v6 using cidr configuration so that it gets the server ipv6.

client {
  host_network "public" {
    interface = "ens3"
  }
  host_network "public_v6" {
    cidr = "ipv6/128"
  }
)

Then in my haproxy job I setup network accordingly:

network {
      port "http" {
        static = 80
        to = 8080
        host_network = "public"
      }

      port "https" {
        static = 443
        to = 4433
        host_network = "public"
      }
      port "http_v6" {
        static = 80
        to = 8080
        host_network = "public_v6"
      }

      port "https_v6" {
        static = 443
        to = 4433
        host_network = "public_v6"
      }
    }

THen you need to add the right ports in your docker configuration and it works !