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
6b18ff57c9
add all local interfaces to node
2022-11-28 11:16:19 -05:00
Abhishek Kondur
f23b0a11ba
check mq is connected before checkin, rm unused functions
2022-10-06 00:59:13 +05:30
afeiszli
f63b88db73
fixing sso error handling
2022-09-19 15:37:00 -04:00
Matthew R. Kasun
f9873020a5
add brackets to local address string if ipv6
2022-09-12 08:53:06 -04:00
Matthew R. Kasun
3824284688
delete broker keys if required
2022-08-29 08:12:25 -04:00
Matthew R Kasun
6ca8bce70d
leave cleanup
2022-08-29 05:35:23 -04:00
Matthew R. Kasun
d83be55d70
single http client
2022-08-23 14:18:22 -04:00
Abhishek Kondur
c537722b76
GRA-408: wipe local fix
2022-08-01 14:18:34 +04:00
Christopher Blaha
68a904c3ac
fixed lowercase lettering and extra spaces in logs
2022-07-23 08:58:53 -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
Christopher Blaha
ac4515c38a
logging
2022-07-22 15:51:22 -04:00
Matthew R. Kasun
30629ae6bc
updated logic for join/leave network
2022-07-14 13:48:11 -04:00
dcarns
07729b56f9
Merge pull request #1316 from gravitl/bugfix_v0.14.5_wg_ports
...
Bugfix v0.14.5 wg ports
2022-07-07 11:29:45 -04:00
0xdcarns
27dbfc867c
added node name to logs
2022-07-07 09:58:52 -04:00
0xdcarns
5fc73e6a80
added inform port change util func
2022-07-07 09:52:20 -04:00
Matthew R. Kasun
a17173fa0f
add timeout for http requests
2022-07-06 09:32:00 -04:00
Matthew R. Kasun
4bc04d5922
updated join logic
...
if join fails, don't try to leave as authentication will fail --- just
wipe
2022-06-20 10:37:31 -04:00
afeiszli
8d422526b3
refactoring servercfg
2022-05-31 12:07:56 -04:00
afeiszli
e4189ad8bd
refactoring serverinfo logic
2022-05-31 08:42:12 -04:00
afeiszli
556b7499dd
remove slash
2022-05-24 16:31:18 -04:00
Matthew R. Kasun
f440b5cc07
remove dns entries in /etc/hosts on leave/uninstall
2022-05-16 07:23:44 -04:00
afeiszli
14b1f561b1
updating netclient.exe for new gui
2022-05-10 09:27:22 -04:00
0xdcarns
a6ee8101e6
small refactors
2022-04-25 19:28:56 -04:00
0xdcarns
dc12b1e418
route changes + primary addr on node
2022-04-25 13:10:54 -04:00
Matthew R. Kasun
955e0e544c
join as api call
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 15:46:19 -04:00
Matthew R. Kasun
12dfc5f820
refactor leave to use API
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 15:46:19 -04:00
Matthew R. Kasun
b7a18eac1f
refactor pull to use api
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 15:46:19 -04:00
Matthew R. Kasun
2b1f20e94b
changes from code review
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 18:21:55 -04:00
Matthew R. Kasun
11b1098390
replace ncutil.Log/PrintLog with logger.Log
2022-03-21 11:27:25 -04:00
afeiszli
5e8eab0a1e
force leave for comms net
2022-02-20 18:09:32 -05:00
afeiszli
be1763bb74
removing old node logic
2022-02-18 10:15:21 -05:00
Matthew R. Kasun
2f6439654a
fix compile errors
2022-02-08 22:31:17 -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
Matthew R. Kasun
b8a0230c03
Added context and waitgroups to goroutines to enable complete shutdown of network go routines when a node is deleted.
...
Ensures a goroutine won't be updating files preventing their deletion.
2022-02-07 22:56:03 -05:00
afeiszli
22d9d4e88a
add logging for file remove
2022-02-07 15:37:59 -05:00
afeiszli
96535554f5
fixing mac stuff and dns testing
2022-02-07 11:38:47 -05:00
0xdcarns
3713d1891a
silenced logs
2022-02-05 15:00:26 -05:00
0xdcarns
85c9d3575a
added wipelocal on all leaves
2022-02-04 11:31:22 -05:00
0xdcarns
f7258bf98f
refactored some client leave & cache and server join logic
2022-02-03 09:51:37 -05:00
afeiszli
03a30b6bbc
removing peer cache
2022-02-02 00:02:36 -05:00
0xdcarns
19426fc3e1
added a cleanup
2022-01-29 18:18:46 -05:00
0xdcarns
d18b6d5ee2
refactored all grpc to be uniform
2022-01-17 14:21:40 -05:00
0xdcarns
c033be41bb
began transition
2022-01-17 14:21:40 -05:00
afeiszli
44084b7df9
mac client semi-functional
2022-01-12 10:03:23 -05:00
0xdcarns
5448042b9a
logs, unused funcs, cleanup
2022-01-02 10:30:07 -05:00
Matthew R Kasun
4ef0b164d7
use wireguard.conf files for all
2021-12-30 07:11:01 -05:00