Skip to content

Commit

Permalink
fix technology name in nordvpn status
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszWojciechO committed Dec 19, 2024
1 parent 9e72f5d commit e75fa3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions daemon/vpn/quench/libquench.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
)

const (
vnicName = "qtun"
quenchPrefix = "[quench]"
quenchInterfaceAddr = "10.3.0.2/16"
)
Expand Down Expand Up @@ -114,7 +113,7 @@ func New(fwmark uint32) *Quench {

return &Quench{
fwmark: fwmark,
vnicName: vnicName,
vnicName: internal.NordWhisperInterfaceName,
observer: NewObserver(),
logger: &logger,
state: vpn.ExitedState,
Expand Down
2 changes: 2 additions & 0 deletions internal/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ const (
AllowlistMinPort = 1
// AllowlistMaxPort defines max port which can be allowlisted
AllowlistMaxPort = 65535

NordWhisperInterfaceName = "qtun"
)

var (
Expand Down
3 changes: 3 additions & 0 deletions networker/networker.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,11 @@ func (netw *Combined) ConnectionStatus() (ConnectionStatus, error) {
}

tech := config.Technology_OPENVPN
tunnelName := netw.vpnet.Tun().Interface().Name
if netw.vpnet.Tun().Interface().Name == "nordlynx" {
tech = config.Technology_NORDLYNX
} else if tunnelName == internal.NordWhisperInterfaceName {
tech = config.Technology_NORDWHISPER
}

var uptime *time.Duration
Expand Down

0 comments on commit e75fa3f

Please sign in to comment.