Skip to content

Failing to generate IPv4 addresses #1

@GGG-KILLER

Description

@GGG-KILLER

I'm currently using NixOS and have added your repository as a flake input to my system configuration.

When attempting to generate an IP with the latest nixos-unstable, the following error is generated:

$ ipgen --network 192.168.2.0/24 abc
[BUG] failed to parse the generated IP address `c0a8:26b` as IPv4

Relevant parts of flake.lock:

{
  "nodes": {
    "ipgen-cli": {
      "inputs": {
        "advisory-db": "advisory-db",
        "crane": "crane",
        "fenix": "fenix",
        "flake-utils": "flake-utils_2",
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1690218106,
        "narHash": "sha256-99E2qNFO5lcoPIG2VEuyIX6hShtkcGfjocAh+GQWh0w=",
        "owner": "ipgen",
        "repo": "cli",
        "rev": "5ebcfbf55af88f10352dfa844e14a05792309a7d",
        "type": "github"
      },
      "original": {
        "owner": "ipgen",
        "repo": "cli",
        "type": "github"
      }
    },
    // ...
    "nixpkgs": {
      "locked": {
        "lastModified": 1751984180,
        "narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    // ...
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions