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
Abhishek Kondur
fe5fd7fce9
do checkin after mq is connected, publish metrics only when node is connected
2022-10-05 21:21:34 +05:30
Abhishek Kondur
acbca2c2d8
remove unused functions
2022-09-30 22:12:57 +05:30
Abhishek Kondur
1827f8c3b5
merge conflicts resolved
2022-09-30 20:15:17 +05:30
0xdcarns
f2606dd3cb
addressed PR comments
2022-09-29 09:49:06 -04:00
0xdcarns
40f7036093
fixed first two issues
2022-09-28 15:22:12 -04:00
0xdcarns
a1ec5fb354
fixed non ping err resulting in connected
2022-09-28 11:31:20 -04:00
Abhishek Kondur
878430bf75
create client for nodes on authenticate,generate dyn sec file on startup
2022-09-27 17:36:33 +05:30
Alex Feiszli
f35429f768
Merge pull request #1596 from gravitl/feature_v0.16.1_ee_check
...
ee check
2022-09-23 15:29:30 -04:00
Matthew R. Kasun
175bb94471
additional checks for disconnected nodes
2022-09-22 15:22:21 -04:00
Matthew R. Kasun
d54fb0823e
ee check
2022-09-22 12:59:59 -04:00
0xdcarns
b1b497faa4
PR comments addressed
2022-09-15 10:23:19 -04:00
afeiszli
b670755cce
refactoring for ee
2022-09-14 13:26:31 -04:00
0xdcarns
88cd0a6497
initial commit
2022-09-13 15:25:56 -04:00
Matthew R. Kasun
70fe3d0268
checkin on daemon start
2022-09-08 09:35:58 -04:00
Matthew R. Kasun
84e58d0d5a
send connected status on checkin
2022-09-08 06:19:10 -04:00
Matthew R. Kasun
fb5cf84b5e
check/update version of netclient in client config during checkin
2022-09-02 15:10:44 -04:00
Matthew R. Kasun
49c6380643
reuse mq connections
2022-08-29 14:08:01 -04:00
afeiszli
983d90026c
move client public ip check to use server
2022-08-17 17:30:30 -04:00
cameronts
82d8d4ff1e
Rearrange imports per PR comments.
2022-08-08 13:02:32 -07:00
cameronts
7c2fce3a55
Change to expandable switch-based firewall detection.
2022-08-03 12:18:04 -07:00
cameronts
766084d6a3
Add check for nftables on daemon start.
2022-08-02 15:58:39 -07:00
Christopher Blaha
d0c09aa2c0
fixed lowercase letters and extra spaces
2022-07-23 08:54:20 -04:00
Christopher Blaha
cb8958e927
log stuff
2022-07-22 22:45:29 -04:00
Matthew R. Kasun
96358f8b94
fetch networks for checkin
2022-07-14 06:35:49 -04:00
Matthew R. Kasun
42b61a166b
debugging logs
2022-07-13 14:07:10 -04:00
afeiszli
2500331024
mod log
2022-07-07 16:16:56 -04:00
afeiszli
b281047168
adding functions to handle certs in DB
2022-06-30 21:56:11 -04:00
Matthew R. Kasun
c8ec46391d
refactor logic for client.key generation
2022-06-22 09:55:10 -04:00
afeiszli
8d422526b3
refactoring servercfg
2022-05-31 12:07:56 -04:00
afeiszli
46b2cfef1c
removing port fallback
2022-05-30 12:56:58 -04:00
afeiszli
bad2a0faea
moving around some logic
2022-05-30 12:54:30 -04:00
afeiszli
0865a535c7
changing broker retrieval/setting logic
2022-05-30 12:39:33 -04:00
Matthew R. Kasun
53b3e7f415
configurable mq ports
2022-05-25 10:31:44 -04:00
0xdcarns
553b03c1b4
made daemon only get networks once
2022-05-24 14:19:47 -04:00
Matthew R. Kasun
4b72a4e289
check broker connectivity on mqtt setup
2022-05-23 15:24:09 -04:00
Matthew R. Kasun
b6affbba36
move logging to checkBroker function
2022-05-23 15:24:09 -04:00
Matthew R. Kasun
979038171a
add checks/logs on broker connect timeout
2022-05-23 15:24:09 -04:00
afeiszli
0531b6f78d
removing ping server function. Unnecessary
2022-05-03 11:43:15 -04:00
Matthew R. Kasun
d1db0ab45a
refactor mq connect
2022-04-29 15:34:11 -04:00
afeiszli
13db6ced0c
adding separator
2022-04-25 20:07:47 -04:00
afeiszli
6a90cd803a
publishing port changes
2022-04-25 11:36:08 -04:00
afeiszli
5f303cb50a
fixing localport issues
2022-04-25 11:34:55 -04:00
afeiszli
ccc0ed851d
adding local listen port
2022-04-25 11:34:32 -04:00
Matthew R. Kasun
a8b1d48e02
more certificate cleanup
2022-04-25 06:38:20 -04:00
Matthew R. Kasun
8f8272aad7
certificate cleanup
2022-04-25 06:33:06 -04:00
Matthew R. Kasun
747d6bc692
remove comms network leftovers
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-22 05:21:35 -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