Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions statsStore.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"os/exec"
"strconv"

"github.com/mdlayher/wireguardctrl"
"golang.zx2c4.com/wireguard/wgctrl"
)

type StatsStore struct {
w *wireguardctrl.Client
w *wgctrl.Client

Alive bool
Endpoint string
Expand Down Expand Up @@ -44,7 +44,7 @@ func toReadable(bytes int64) string {
func (d *StatsStore) Update() *StatsStore {
// init client
if d.w == nil {
c, err := wireguardctrl.New()
c, err := wgctrl.New()
if err != nil {
log.Fatalf("Failed to open wireguardctrl: %v", err)
}
Expand Down