Skip to content

Commit f4624d0

Browse files
committed
fix: peeringdb url
1 parent 5c2e738 commit f4624d0

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

pkg/peeringdb/peeringdb.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package peeringdb
33
import (
44
"encoding/json"
55
"errors"
6-
"flag"
76
"fmt"
87
"io"
98
"net/http"
@@ -17,16 +16,8 @@ import (
1716
"github.com/natesales/pathvector/pkg/irr"
1817
)
1918

20-
func endpoint() string {
21-
if flag.Lookup("test.v") == nil {
22-
return "https://www.peeringdb.com/api"
23-
} else {
24-
return "http://localhost:5000/api"
25-
}
26-
}
27-
28-
// Endpoint is a public value to allow overwriting to a cache server
29-
var Endpoint = endpoint()
19+
// Endpoint is a public value to allow setting to a cache server
20+
var Endpoint = ""
3021

3122
type IxLanResponse struct {
3223
Data []IxLanData `json:"data"`

tests/generate-complex.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ prefixes:
88
web-ui-file: test-cache/ui.html
99
cache-directory: test-cache
1010
blackhole-bogon-asns: true
11+
peeringdb-url: http://localhost:5000/api
1112

1213
origin-communities:
1314
- 34553:10

tests/generate-simple.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ prefixes:
77
- 2001:db8::/48
88
web-ui-file: test-cache/ui.html
99
cache-directory: test-cache
10+
peeringdb-url: http://localhost:5000/api
1011

1112
peers:
1213
Example:

tests/probe-simple.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ prefixes:
66
- 192.0.2.0/24
77
- 2001:db8::/48
88
cache-directory: test-cache
9+
peeringdb-url: http://localhost:5000/api
910

1011
optimizer:
1112
probe-udp: true

0 commit comments

Comments
 (0)