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
0xdcarns
3b1ff49344
added better handling of wg ifaces on windows + fix connect issue
2022-10-13 11:30:21 -04:00
afeiszli
e93eaf8e1d
fixing compare
2022-09-20 11:03:44 -04:00
Matthew R. Kasun
03c2c5ae1e
delete postup/down from wg.conf file when gateway is removed
2022-08-31 15:29:33 -04:00
afeiszli
fbe119f0cd
small windows fix
2022-08-26 11:57:37 -04:00
Matthew R. Kasun
85cb88f0ad
use 0.0.0.0/0 ::/0 as egress range for internet gateways
2022-08-09 13:51:28 -04:00
Christopher Blaha
d0c09aa2c0
fixed lowercase letters and extra spaces
2022-07-23 08:54:20 -04:00
Christopher Blaha
bc009d03e3
things
2022-07-22 23:26:46 -04:00
Christopher Blaha
b5be396f87
commas, amiright?
2022-07-22 23:24:10 -04:00
Christopher Blaha
cb8958e927
log stuff
2022-07-22 22:45:29 -04:00
Matthew R. Kasun
3a9f75cc83
lockfile path
2022-07-20 12:51:38 -04:00
Matthew R. Kasun
0ac12e9eb3
lockfile path:w
2022-07-19 15:36:53 -04:00
Matthew R. Kasun
7169c232ed
add lockfile to prevent corruption of /etc/hosts
2022-07-19 15:12:45 -04:00
Matthew R. Kasun
7bfbf06eb5
update logic for determing when to check for free port
2022-07-11 08:15:46 -04:00
dcarns
ef82ac4af5
Merge pull request #1296 from gravitl/feature_v0.14.5_longer_client_peer_cache
...
changed client message cache to a day
2022-07-07 13:16:09 -04:00
0xdcarns
52b876b333
moved log to reflect when message is actually consumed
2022-07-07 12:54:21 -04:00
0xdcarns
5fc73e6a80
added inform port change util func
2022-07-07 09:52:20 -04:00
Matthew R. Kasun
c481f27200
moved checks around
2022-07-06 16:13:51 -04:00
afeiszli
c06c7868c0
moving port check logic
2022-07-06 15:20:28 -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
Matthew R. Kasun
afe12b277d
force lowercase for /etc/hosts profile names
...
to test:
create newtwork with Upper case name
check profile in /etc/hosts is created with all lowercase
2022-06-06 13:01:51 -04:00
Matthew R. Kasun
85ad06941d
use interface as hostctl profile
2022-05-27 09:45:52 -04:00
Matthew R. Kasun
28a6ea85cb
remove debug logs
2022-05-25 17:50:13 -04:00
Matthew R. Kasun
fef31752bd
send server version in peer update message
2022-05-25 15:21:22 -04:00
dcarns
1b7efe1ced
Merge pull request #1029 from gravitl/feature_v0.13.0_btr_serv_reset
...
added initial notification to clients on server startup
2022-04-25 13:40:51 -04:00
0xdcarns
dc12b1e418
route changes + primary addr on node
2022-04-25 13:10:54 -04:00
afeiszli
6a90cd803a
publishing port changes
2022-04-25 11:36:08 -04:00
0xdcarns
773ad9b753
added initial notification to clients on server startup
2022-04-25 11:12:49 -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
935567761b
mq direct to server public ip
2022-04-12 10:43:02 -04:00
Matthew R. Kasun
11b1098390
replace ncutil.Log/PrintLog with logger.Log
2022-03-21 11:27:25 -04:00
dcarns
9efb15e688
Merge pull request #929 from gravitl/bugfix_v0.12.0_keepalive
...
keepalive handling updates
2022-03-21 10:41:01 -04:00
Matthew R. Kasun
c16687be61
keepalive handling updates
2022-03-21 07:07:50 -04:00
Matthew R. Kasun
58988706d9
missed on call
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca >
2022-03-18 13:47:03 -04:00
Matthew R. Kasun
3b12f55de0
use interface as hostctl profile
2022-03-18 10:10:34 -04:00
afeiszli
fbb18d86d0
fixing windows join issue
2022-03-15 11:11:22 -04:00
Matthew R. Kasun
628f1f1468
remove debug logs
2022-03-14 16:32:14 -04:00
Matthew R Kasun
11e0bd20d3
dns per network
2022-03-14 19:44:38 +00:00
Matthew R. Kasun
0abba58bfb
use string rather than []byte for dns
2022-03-14 14:59:41 -04:00
Matthew R. Kasun
0f7cbdac49
eliminate the need for a tmp file to update dns
2022-03-12 16:15:49 -05:00
0xdcarns
7eac05528a
edited where server sets peers to account for ACLs
2022-03-11 08:59:53 -05:00
0xdcarns
12ca8e09aa
update logs
2022-03-10 15:46:48 -05:00
Matthew R. Kasun
078be94fd2
don't update dns on comms network peer update
2022-03-08 17:15:13 -05:00
Matthew R. Kasun
63c87ade73
another one
2022-03-08 06:22:02 -05:00
Matthew R. Kasun
b4fff48e9b
change error
2022-03-08 06:02:50 -05:00
Matthew R. Kasun
aa24037d28
fix stay paste error
2022-03-04 14:00:05 -05:00
Matthew R. Kasun
7722ba910b
window tmp file path
2022-03-04 13:29:56 -05:00
Matthew R. Kasun
cc5bc8f84d
fix vscode autocompletion error
2022-03-04 11:10:52 -05:00
Matthew R. Kasun
d7b0852e24
disable resolvctl dns
2022-03-03 15:07:27 -05:00
Matthew R. Kasun
9bd0af7e9c
remove /etc/hosts entries if DONon=off ('no')
2022-03-02 09:07:52 -05:00