Skip to content

chore(vpn): upsert agents with their network status #15659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 4 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ linters-settings:
- name: modifies-value-receiver
- name: package-comments
- name: range
- name: range-val-address
- name: range-val-in-closure
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- name: receiver-naming
- name: redefines-builtin-id
- name: string-of-int
Expand All @@ -199,6 +197,10 @@ linters-settings:
govet:
disable:
- loopclosure
gosec:
excludes:
# Implicit memory aliasing of items from a range statement (irrelevant as of Go v1.22)
- G601

issues:
# Rules listed here: https://github.com/securego/gosec#available-rules
Expand Down Expand Up @@ -238,7 +240,6 @@ linters:
- errname
- errorlint
- exhaustruct
- exportloopref
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- forcetypeassert
- gocritic
# gocyclo is may be useful in the future when we start caring
Expand Down
2 changes: 2 additions & 0 deletions vpn/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"tailscale.com/net/dns"
"tailscale.com/wgengine/router"

"github.com/google/uuid"
"github.com/tailscale/wireguard-go/tun"

"cdr.dev/slog"
Expand All @@ -23,6 +24,7 @@ import (

type Conn interface {
CurrentWorkspaceState() (tailnet.WorkspaceUpdate, error)
GetPeerDiagnostics(peerID uuid.UUID) tailnet.PeerDiagnostics
Close() error
}

Expand Down
Loading
Loading