Skip to content

Commit 4f88561

Browse files
authored
Fix CLI flags and their usage (#33)
1 parent 594601e commit 4f88561

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ COPY ./data/asnames.ipinfo.csv /data/asnames.ipinfo.csv
1616
# parameter, just like we do with the IP->AS mapping and the IP->geo mapping.
1717
# For now, to prove to ourselves and IPInfo.io that doing that work might be
1818
# worth it, we ship the 3.7MB data file with the binary.
19-
ENV SITEINFO_URL file:///data/asnames.ipinfo.csv
19+
ENV ASNAME_URL file:///data/asnames.ipinfo.csv
2020
WORKDIR /
2121
ENTRYPOINT ["/uuid-annotator"]

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func init() {
5050
flag.Var(&maxmindurl, "maxmind.url", "The URL for the file containing MaxMind IP metadata. Accepted URL schemes currently are: gs://bucket/file and file:./relativepath/file")
5151
flag.Var(&routeviewv4, "routeview-v4.url", "The URL for the RouteViewIPv4 file containing ASN metadata. gs:// and file:// schemes accepted.")
5252
flag.Var(&routeviewv6, "routeview-v6.url", "The URL for the RouteViewIPv6 file containing ASN metadata. gs:// and file:// schemes accepted.")
53+
flag.Var(&asnameurl, "asname.url", "The URL for the ASName CSV file containing a mapping of AS numbers to AS names provided by IPInfo.io")
5354
flag.Var(&siteinfo, "siteinfo.url", "The URL for the Siteinfo JSON file containing server location and ASN metadata. gs:// and file:// schemes accepted.")
5455
log.SetFlags(log.LstdFlags | log.LUTC | log.Llongfile)
5556
}

0 commit comments

Comments
 (0)