Skip to content

Commit

Permalink
- fixed small printf error
Browse files Browse the repository at this point in the history
- added example to ini
  • Loading branch information
ipcjk committed Mar 2, 2021
1 parent 536c926 commit 8cf643a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion configuration/peering.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ routeserver=1

[ECIX-MUC / INXS by ecix]
[options]
routeserver=1
ixid = 73
routeserver = 1
routeserver6=1
routeserver_group=INXS-RS
routeserver_group6=INXS-RS6
Expand Down
2 changes: 1 addition & 1 deletion ixgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func readArgumentsAndSetup() {
flag.Parse()

if version {
fmt.Println("ixgen 0.5 (C) 2018 by Jörg Kost, jk@ip-clear.de")
fmt.Println("ixgen 0.6 (C) 2021 by Jörg Kost, jk@ip-clear.de")
os.Exit(0)
}

Expand Down
2 changes: 1 addition & 1 deletion peeringdb/peeringdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (p *peeringdb) SearchIXByIxId(ixId string) (apiResult Ix, err error) {
}

if len(apiResult.Data) == 0 {
return Ix{}, fmt.Errorf("%d is not a valid ixID or was not found on peeringdb", ixId)
return Ix{}, fmt.Errorf("%s is not a valid ixID or was not found on peeringdb", ixId)
}

if err = p.callAPI("/ix/"+strconv.FormatInt(apiResult.Data[0].ID, 10), &apiResult); err != nil {
Expand Down

0 comments on commit 8cf643a

Please sign in to comment.