Skip to content

Portrule can't distinguish between ipv4 and ipv6 #305

Description

@sidey79

Version

docker-compose-linter/dclint-github-action@v1.6.0

YAML file where the error occurs

    ports:
      - '0.0.0.0:8200:8200'  # IPv4
      - '[::]:8200:8200'     # IPv6

Command used to run

npx dclint@3.1.0 ./ -r -f github

Optional configuration (if different from the default)

none

Additional context

nothing

Current behavior (console output)

no-duplicate-exported-ports: Service "test-service" is exporting port "8200" which is already used by service "duplicati".

Expected behavior

The duplicate ports rule should allow using the same port for ipv4 and ipv6 on the same service, because the duplication in this situation isn't really a problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions