Update bird_client.go

This commit is contained in:
Daniel Czerwonk 2017-07-01 09:26:15 +02:00 committed by GitHub
parent b949d36f9d
commit 051f953501

View File

@ -2,7 +2,7 @@ package main
import ( import (
"github.com/czerwonk/bird_exporter/protocol" "github.com/czerwonk/bird_exporter/protocol"
"github.com/czerwonk/bird_socket" "github.com/czerwonk/birdsocket"
) )
func getProtocols() ([]*protocol.Protocol, error) { func getProtocols() ([]*protocol.Protocol, error) {
@ -28,7 +28,7 @@ func getProtocols() ([]*protocol.Protocol, error) {
} }
func getProtocolsFromBird(socketPath string, ipVersion int) ([]*protocol.Protocol, error) { func getProtocolsFromBird(socketPath string, ipVersion int) ([]*protocol.Protocol, error) {
b, err := bird_socket.Query(socketPath, "show protocols all") b, err := birdsocket.Query(socketPath, "show protocols all")
if err != nil { if err != nil {
return nil, err return nil, err
} }