netmaker/netclient/functions
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
..
upgrades fix 0.16.2 update function 2022-10-18 10:42:02 -04:00
clientconfig.go added 0.16.0 upgrade logic 2022-09-19 09:46:09 -04:00
common.go Fixes+Chores: avoid de-referencing nil ptrs + lint 2022-12-06 20:11:20 -08:00
connection.go publish message after node connect/disconnect 2022-09-12 15:58:49 -04:00
daemon.go change mosquitto protocol from mqtts to wss 2022-11-10 16:59:38 +05:30
install.go use SIGHUP to restart daemon 2022-07-18 16:07:36 -04:00
join.go add all local interfaces to node 2022-11-28 11:16:19 -05:00
list.go Fixes+Chores: avoid de-referencing nil ptrs + lint 2022-12-06 20:11:20 -08:00
localport.go Fixes+Chores: avoid de-referencing nil ptrs + lint 2022-12-06 20:11:20 -08:00
localport_freebsd.go fixed lowercase letters and extra spaces 2022-07-23 08:54:20 -04:00
mqhandlers.go Fixes+Chores: avoid de-referencing nil ptrs + lint 2022-12-06 20:11:20 -08:00
mqpublish.go Fixes+Chores: avoid de-referencing nil ptrs + lint 2022-12-06 20:11:20 -08:00
pull.go fixed lowercase letters and extra spaces 2022-07-23 08:54:20 -04:00