all: fix spelling mistakes

Signed-off-by: nicksherron <nsherron90@gmail.com>
This commit is contained in:
nicksherron 2021-10-12 20:28:44 -04:00 committed by Brad Fitzpatrick
parent 9795fca946
commit f01ff18b6f
13 changed files with 14 additions and 14 deletions

View File

@ -79,7 +79,7 @@ type Direct struct {
endpoints []tailcfg.Endpoint endpoints []tailcfg.Endpoint
everEndpoints bool // whether we've ever had non-empty endpoints everEndpoints bool // whether we've ever had non-empty endpoints
localPort uint16 // or zero to mean auto localPort uint16 // or zero to mean auto
lastPingURL string // last PingRequest.URL received, for dup suppresion lastPingURL string // last PingRequest.URL received, for dup suppression
} }
type Options struct { type Options struct {

View File

@ -218,7 +218,7 @@ func TestNetmapForResponse(t *testing.T) {
} }
nm2 := ms.netmapForResponse(&tailcfg.MapResponse{ nm2 := ms.netmapForResponse(&tailcfg.MapResponse{
Node: new(tailcfg.Node), Node: new(tailcfg.Node),
DNSConfig: nil, // implict DNSConfig: nil, // implicit
}) })
if !reflect.DeepEqual(nm2.DNS, *someDNSConfig) { if !reflect.DeepEqual(nm2.DNS, *someDNSConfig) {
t.Fatalf("2nd DNS wrong") t.Fatalf("2nd DNS wrong")

View File

@ -624,7 +624,7 @@ func Run(ctx context.Context, logf logger.Logf, logid string, getEngine func() (
resetOnZero: !opts.SurviveDisconnects, resetOnZero: !opts.SurviveDisconnects,
} }
// When the context is closed or when we return, whichever is first, close our listner // When the context is closed or when we return, whichever is first, close our listener
// and all open connections. // and all open connections.
go func() { go func() {
select { select {

View File

@ -36,7 +36,7 @@ func IsInterestingService(s tailcfg.Service, os string) bool {
5900, // vnc 5900, // vnc
32400, // plex 32400, // plex
// And now some arbitary HTTP dev server ports: // And now some arbitrary HTTP dev server ports:
// Eventually we'll remove this and make all ports // Eventually we'll remove this and make all ports
// work, once we nicely filter away noisy system // work, once we nicely filter away noisy system
// ports. // ports.

View File

@ -82,7 +82,7 @@ func TestNewAWSStore(t *testing.T) {
store2 := s.(*awsStore) store2 := s.(*awsStore)
// This is specific to the test, with the non-mocked API, LoadState() should // This is specific to the test, with the non-mocked API, LoadState() should
// have been already called and sucessful as no err is returned from NewAWSStore() // have been already called and successful as no err is returned from NewAWSStore()
s2.(*awsStore).LoadState() s2.(*awsStore).LoadState()
expected := map[ipn.StateKey]string{ expected := map[ipn.StateKey]string{

View File

@ -238,7 +238,7 @@ func winProgramDataAccessible(dir string) bool {
// //
// If log state for cmdname exists in / or $CACHE_DIRECTORY, and no // If log state for cmdname exists in / or $CACHE_DIRECTORY, and no
// log state for that command exists in dir, then the log state is // log state for that command exists in dir, then the log state is
// moved from whereever it does exist, into dir. Leftover logs state // moved from wherever it does exist, into dir. Leftover logs state
// in / and $CACHE_DIRECTORY is deleted. // in / and $CACHE_DIRECTORY is deleted.
func tryFixLogStateLocation(dir, cmdname string) { func tryFixLogStateLocation(dir, cmdname string) {
switch runtime.GOOS { switch runtime.GOOS {

View File

@ -20,7 +20,7 @@ import (
// resolveToIP returns a handler function which responds // resolveToIP returns a handler function which responds
// to queries of type A it receives with an A record containing ipv4, // to queries of type A it receives with an A record containing ipv4,
// to queries of type AAAA with an AAAA record containing ipv6, // to queries of type AAAA with an AAAA record containing ipv6,
// to queries of type NS with an NS record containg name. // to queries of type NS with an NS record containing name.
func resolveToIP(ipv4, ipv6 netaddr.IP, ns string) dns.HandlerFunc { func resolveToIP(ipv4, ipv6 netaddr.IP, ns string) dns.HandlerFunc {
return func(w dns.ResponseWriter, req *dns.Msg) { return func(w dns.ResponseWriter, req *dns.Msg) {
m := new(dns.Msg) m := new(dns.Msg)
@ -71,7 +71,7 @@ func resolveToIP(ipv4, ipv6 netaddr.IP, ns string) dns.HandlerFunc {
// by lowercasing the question and answer names, and responds // by lowercasing the question and answer names, and responds
// to queries of type A it receives with an A record containing ipv4, // to queries of type A it receives with an A record containing ipv4,
// to queries of type AAAA with an AAAA record containing ipv6, // to queries of type AAAA with an AAAA record containing ipv6,
// to queries of type NS with an NS record containg name. // to queries of type NS with an NS record containing name.
func resolveToIPLowercase(ipv4, ipv6 netaddr.IP, ns string) dns.HandlerFunc { func resolveToIPLowercase(ipv4, ipv6 netaddr.IP, ns string) dns.HandlerFunc {
return func(w dns.ResponseWriter, req *dns.Msg) { return func(w dns.ResponseWriter, req *dns.Msg) {
m := new(dns.Msg) m := new(dns.Msg)

View File

@ -107,7 +107,7 @@ SpeedTestLoop:
case nil: case nil:
// successful read // successful read
default: default:
return nil, fmt.Errorf("unexpected error has occured: %w", err) return nil, fmt.Errorf("unexpected error has occurred: %w", err)
} }
} else { } else {
// Need to change the data a little bit, to avoid any compression. // Need to change the data a little bit, to avoid any compression.

View File

@ -26,7 +26,7 @@
# This package contains tools like `ssh-keygen`. # This package contains tools like `ssh-keygen`.
openssh openssh
# The C complier so cgo builds work. # The C compiler so cgo builds work.
gcc gcc
# The package manager Nix, just in case. # The package manager Nix, just in case.

View File

@ -173,7 +173,7 @@ func ExampleDebugHandler_KV() {
dbg := Debugger(mux) dbg := Debugger(mux)
// Adds two list items to /debug/, showing that the condition is // Adds two list items to /debug/, showing that the condition is
// red and there are 42 donuts. // red and there are 42 donuts.
dbg.KV("Conditon", "red") dbg.KV("Condition", "red")
dbg.KV("Donuts", 42) dbg.KV("Donuts", 42)
} }

View File

@ -221,7 +221,7 @@ func setupNonblockingChannelTest(logf logger.Logf, traf *TrafficGen) {
// Same as above, but at an intermediate blocking channel and goroutine // Same as above, but at an intermediate blocking channel and goroutine
// to make things a little more like wireguard-go. Roughly 20% slower than // to make things a little more like wireguard-go. Roughly 20% slower than
// the single-channel verison. // the single-channel version.
func setupDoubleChannelTest(logf logger.Logf, traf *TrafficGen) { func setupDoubleChannelTest(logf logger.Logf, traf *TrafficGen) {
ch := make(chan []byte, 1000) ch := make(chan []byte, 1000)
ch2 := make(chan []byte, 1000) ch2 := make(chan []byte, 1000)

View File

@ -257,7 +257,7 @@ func configureInterface(cfg *Config, tun *tun.NativeTun) (retErr error) {
return fmt.Errorf("getting interface: %w", err) return fmt.Errorf("getting interface: %w", err)
} }
// Send non-nil return errors to retErrc, to interupt our background // Send non-nil return errors to retErrc, to interrupt our background
// setPrivateNetwork goroutine. // setPrivateNetwork goroutine.
retErrc := make(chan error, 1) retErrc := make(chan error, 1)
defer func() { defer func() {

View File

@ -192,7 +192,7 @@ func newUserspaceRouterAdvanced(logf logger.Logf, tunname string, linkMon *monit
// set a timer to restore our rules, in case they were deleted. The timer lets // set a timer to restore our rules, in case they were deleted. The timer lets
// us do one fixup in response to a batch of rule deletes. It also lets us // us do one fixup in response to a batch of rule deletes. It also lets us
// delay arbitrarily to prevent a high-speed fight over the rule between // delay arbitrarily to prevent a high-speed fight over the rule between
// competiting processes. (Although empirically, systemd doesn't fight us // competing processes. (Although empirically, systemd doesn't fight us
// like that... yet.) // like that... yet.)
// //
// Note that we don't care about the table number. We don't strictly even care // Note that we don't care about the table number. We don't strictly even care