-public-ip can only be set once

When defining the -public-ip parameter twice on the command line, the first value is omitted.

Compose:

version: '3.7'

services:

  boringproxy:
    build:
      args:
        ORIGIN: "remote"
      context: ./
    image: boringproxy
    command: server -admin-domain ${ADMIN_DOMAIN} -acme-email ${ACME_EMAIL} -accept-ca-terms -cert-dir /storage/certmagic -print-login -public-ip ${IPV4} -public-ip ${IPV6}
    ports:
      - "${IPV4}:80:80"
      - "${IPV4}:443:443"
      - "${IPV6}:80:80"
      - "${IPV6}:443:443"
    volumes:
      - ./.state/storage:/storage
      - ./.state/ssh:/root/.ssh
      - /etc/ssl/certs/:/etc/ssl/certs/:ro
    environment:
      ADMIN_DOMAIN: ${ADMIN_DOMAIN}
      ACME_EMAIL: ${ACME_EMAIL}
      USER: ${USER}

  openssh:
    image: linuxserver/openssh-server
    environment:
      DOCKER_MODS: linuxserver/mods:openssh-server-ssh-tunnel
      PUID: "0"
      PGID: "0"
    volumes:
      - ./.state/openssh:/config
      - ./.state/ssh:/config/.ssh
    ports:
      - "${IPV4}:22:2222"
      - "${IPV6}:22:2222"

Environment:

IPV4=
IPV6=
ADMIN_DOMAIN=
ACME_EMAIL=
USER=root

Relevant Output:

boringproxy_1  | 2022/05/11 21:47:32 Starting up      
boringproxy_1  | WARNING: Failed to access 2f01:4a8:10f:22d1::11:80 from the internet
boringproxy_1  | WARNING: Failed to access 2f01:4a8:10f:22d1::11:443 from the internet


PS: Is there a way for syntax highlighting in Discourse, for it acts as an issue tracker for BoringProxy now?

Yeah currently the support for IPv4 and IPv6 at the same time is still missing some things. This will probably need to be rolled into some more general changes such as having separate flags for each.