Commit graph

18 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
Abhishek Kondur
e2a7e2c812 GRA-408: remove daemon check 2022-08-02 18:46:30 +04:00
Abhishek Kondur
c772d15080 GRA-408: check if netclient daemon exists to start client daemon service 2022-08-02 11:19:46 +04:00
Matthew R. Kasun
b7a08a2668 return after windows restart 2022-07-15 09:25:58 -04:00
Matthew R. Kasun
30629ae6bc updated logic for join/leave network 2022-07-14 13:48:11 -04:00
Matthew R. Kasun
fcedf7b60f revert to old way for windows 2022-07-13 11:31:32 -04:00
Matthew R. Kasun
d36de447ac use SIGHUP to restart daemon 2022-07-12 05:20:22 -04:00
Matthew R. Kasun
0410e1d4fb install command 2022-06-23 14:06:26 -04:00
afeiszli
bc1eb17bad removing windows installer portions 2022-05-15 20:26:38 -04:00
john s
24f292c934
netclient: pass by value -> reference (#919)
* netclient: pass by value -> reference

Updates various function arguments to accept config.ClientConfig
as a reference to avoid deep copying the struct.

Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-20 23:43:17 -05:00
afeiszli
c6a7238453 adding random comms network name logic 2022-02-18 15:18:50 -05:00
Matthew R. Kasun
a545643172 added freebsd daemon 2022-02-08 22:06:41 -05:00
0xdcarns
39cea2da6c refactored delete, pull nil pointer and logging 2022-02-08 10:43:46 -05:00
afeiszli
03a30b6bbc removing peer cache 2022-02-02 00:02:36 -05:00
afeiszli
23d1a28965 added more comments and fixed formatting 2022-01-15 19:57:07 -05:00
afeiszli
21ba362eca allowing IsServer to be modified, configurable checkin time, single checkin for linux, moved cfg files 2021-10-02 12:28:17 -04:00
afeiszli
ec46d303ab got service working 2021-09-21 14:01:52 -04:00
afeiszli
a0586ea6d2 began adding macos service/daemon 2021-09-19 14:03:47 -04:00