netmaker/logic
kayos@tcp.direct e878e4820a
Fixes+Chores: avoid de-referencing nil ptrs + lint
- Avoid referencing conditions we know are false/true

 - Avoid using name of imported package as variable

 - Avoid broken (see list item 1) if else statement in `ipservice.go` by refactoring to switch statement

 - When assigning a pointer value to a variable along with an error, check that error before referencing that pointer. Thus avoiding de-referencing a nil and causing a panic.
  *** This item is the most important ***

 - Standard gofmt package sorting + linting; This includes fixing comment starts for go doc

 - Explicit non-handling of unhandled errors where appropriate (assigning errs to _ to reduce linter screaming)

 - Export ErrExpired in `netcache` package so that we can properly reference it using `errors.Is` instead of using `strings.Contains` against an `error.Error()` value
2022-12-06 20:11:20 -08:00
..
acls changed dir name and added to gitignore, removed log 2022-03-11 11:48:08 -05:00
metrics merge conflicts resolved 2022-09-30 20:15:17 +05:30
pro Fixes+Chores: avoid de-referencing nil ptrs + lint 2022-12-06 20:11:20 -08:00
accesskeys.go PR comments resolved 2022-10-01 06:27:30 +05:30
accesskeys_test.go netclient: math.Rand -> crypto.Rand (#956) 2022-03-23 12:06:26 -06:00
auth.go Fixes+Chores: avoid de-referencing nil ptrs + lint 2022-12-06 20:11:20 -08:00
dns.go merge conflicts resolved 2022-09-26 17:47:20 +05:30
errors.go refactoring for ee 2022-09-14 13:26:31 -04:00
extpeers.go initial commit 2022-09-13 15:25:56 -04:00
gateway.go Fixes+Chores: avoid de-referencing nil ptrs + lint 2022-12-06 20:11:20 -08:00
jwts.go Fixes+Chores: avoid de-referencing nil ptrs + lint 2022-12-06 20:11:20 -08:00
metrics.go adjusted check for clients on non servers 2022-10-14 12:15:01 -04:00
networks.go fix ipv6 addressing bug 2022-11-16 18:10:09 +05:30
nodes.go Merge pull request #1651 from gravitl/feature_v0.16.2_client_metrics 2022-10-14 09:43:13 -04:00
peers.go fix finger problem (missing } 2022-10-26 10:32:34 -04:00
relay.go remove func NetworkNodesUpdatePullChanges 2022-08-18 04:49:35 -04:00
security.go moved ee check out of ce 2022-11-09 14:35:26 -05:00
server.go addressed PR comments 2022-09-29 09:49:06 -04:00
serverconf.go rm Is_EE from pkg logic 2022-09-26 18:12:01 +05:30
telemetry.go Add telemetry for EE and FreeTier flags 2022-09-29 15:40:10 -07:00
timer.go fixing timer logic 2022-05-28 10:23:32 -04:00
traffic.go log cleanup 2022-01-29 18:18:46 -05:00
users.go ee fixes 2022-09-14 09:58:01 -04:00
util.go PR comments resolved 2022-10-01 06:27:30 +05:30
wireguard.go use RunCmd for postup/postdown 2022-09-09 14:15:10 -04:00
zombie.go changed verbosity for zombie checking log message 2022-11-29 09:42:46 -05:00