Commit graph

11 commits

Author SHA1 Message Date
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
Matthew R. Kasun
49c6380643 reuse mq connections 2022-08-29 14:08:01 -04:00
Christopher Blaha
d0c09aa2c0 fixed lowercase letters and extra spaces 2022-07-23 08:54:20 -04:00
Christopher Blaha
4a5ae8fb31 removed ". " 2022-07-22 23:48:46 -04:00
Christopher Blaha
9be779f666 log messages 2022-07-22 20:32:34 -04:00
Matthew R. Kasun
7bfbf06eb5 update logic for determing when to check for free port 2022-07-11 08:15:46 -04:00
afeiszli
8d422526b3 refactoring servercfg 2022-05-31 12:07:56 -04:00
afeiszli
93a25bb9a6 adding freebsd logic and using wgctrl.Device 2022-04-25 11:36:09 -04:00
afeiszli
9a66674a5c minor logic revisions 2022-04-25 11:36:09 -04:00
afeiszli
91ca96534b adding comments, removing bad check 2022-04-25 11:36:09 -04:00
afeiszli
6a90cd803a publishing port changes 2022-04-25 11:36:08 -04:00