Skip to content

Invalid ASN #93

@DasDunkel

Description

@DasDunkel

Trying to build with ASN support using the new documentation is giving the following error;

11.65 panic: invalid ASN: AS15169
11.65 
11.65 goroutine 1 [running]:
11.65 pkg.jsn.cam/caddy-defender/ranges/fetchers.NewASNFetcher({0xc000124360?, 0xf?, 0x912a60?})
11.65   /app/caddy-defender/ranges/fetchers/asn.go:71 +0x114
11.65 main.main()
11.65   /app/caddy-defender/ranges/main.go:77 +0x4c5
11.65 exit status 2

Below is the relevant part of the Dockerfile;

WORKDIR /app
RUN git clone https://github.com/JasonLovesDoggo/caddy-defender.git
WORKDIR /app/caddy-defender
RUN go run ranges/main.go --asn "AS15169,AS13335"

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