Skip to content
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

Fix typos in comments #133

Merged
merged 1 commit into from
Jan 22, 2025
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
2 changes: 1 addition & 1 deletion internal/splitrt/splitrt.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (s *SplitRouting) teardownRouting(ctx context.Context) {
}
}

// excludeSettings returns whether local (virtual) networks should be excluded.
// excludeLocalNetworks returns whether local (virtual) networks should be excluded.
func (s *SplitRouting) excludeLocalNetworks() (exclude bool, virtual bool) {
for _, e := range s.config.VPNConfig.Split.ExcludeIPv4 {
if e.String() == "0.0.0.0/32" {
Expand Down
2 changes: 1 addition & 1 deletion internal/splitrt/splitrt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func TestSplitRoutingStartStop(t *testing.T) {
}
defer func() { devmon.RegisterLinkUpdates = oldRegisterLinkUpdates }()

// test with new configs
// test with new config
s := NewSplitRouting(daemoncfg.NewConfig())
if err := s.Start(); err != nil {
t.Error(err)
Expand Down
2 changes: 1 addition & 1 deletion internal/vpnsetup/vpnsetup.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (v *VPNSetup) ensureDNS(ctx context.Context, config *daemoncfg.Config) bool
return protOK && srvOK && domOK
}

// ensureConfig ensured that the VPN config is and stays active.
// ensureConfig ensures that the VPN config is and stays active.
func (v *VPNSetup) ensureConfig(ctx context.Context, conf *daemoncfg.Config) {
defer close(v.ensureClosed)

Expand Down