File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package peeringdb
3
3
import (
4
4
"encoding/json"
5
5
"errors"
6
- "flag"
7
6
"fmt"
8
7
"io"
9
8
"net/http"
@@ -17,16 +16,8 @@ import (
17
16
"github.com/natesales/pathvector/pkg/irr"
18
17
)
19
18
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 = ""
30
21
31
22
type IxLanResponse struct {
32
23
Data []IxLanData `json:"data"`
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ prefixes:
8
8
web-ui-file : test-cache/ui.html
9
9
cache-directory : test-cache
10
10
blackhole-bogon-asns : true
11
+ peeringdb-url : http://localhost:5000/api
11
12
12
13
origin-communities :
13
14
- 34553:10
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ prefixes:
7
7
- 2001:db8::/48
8
8
web-ui-file : test-cache/ui.html
9
9
cache-directory : test-cache
10
+ peeringdb-url : http://localhost:5000/api
10
11
11
12
peers :
12
13
Example :
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ prefixes:
6
6
- 192.0.2.0/24
7
7
- 2001:db8::/48
8
8
cache-directory : test-cache
9
+ peeringdb-url : http://localhost:5000/api
9
10
10
11
optimizer :
11
12
probe-udp : true
You can’t perform that action at this time.
0 commit comments