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
0ba3f6feaf
address code review comment
2022-09-12 06:42:01 -04:00
Matthew R. Kasun
7ec8c4be2a
use RunCmd for postup/postdown
2022-09-09 14:15:10 -04:00
afeiszli
fbe119f0cd
small windows fix
2022-08-26 11:57:37 -04:00
Matthew R Kasun
723e4ebeee
Merge branch 'develop' into feature_v0.14.7_explicit_routes
2022-08-25 07:31:34 -04:00
afeiszli
f3361170fe
reverting mac path
2022-08-24 16:04:29 -04:00
afeiszli
878e3d848e
adding windows GetDefaultRoute
2022-08-23 00:33:48 -04:00
Alex Feiszli
0c7bef6e80
Merge pull request #1466 from gravitl/bugfix_v0.14.7_check_firewall
...
add checks for firewall
2022-08-22 09:35:49 -04:00
afeiszli
b72fa12470
integrating iptables/nft checks
2022-08-22 09:34:43 -04:00
Matthew R. Kasun
484b628848
require firewall
2022-08-22 09:27:45 -04:00
Matthew R. Kasun
f536f0465c
check firewall type on gateway creation
2022-08-19 15:32:25 -04:00
Matthew R Kasun
f569830910
Merge pull request #1442 from theguy951357/bugfix_v0.14.7_apple_data_path
...
Bugfix v0.14.7 apple data path
2022-08-19 10:55:49 -04:00
Matthew R. Kasun
157a8f02cd
add checks for firewall
2022-08-19 10:43:51 -04:00
Matthew R. Kasun
43258b642e
Merge branch 'develop' into bugfix_v0.14.7_nft
2022-08-18 15:49:06 -04:00
Matthew R. Kasun
8eadccee2b
fix statticcheck error
2022-08-18 08:59:36 -04:00
afeiszli
983d90026c
move client public ip check to use server
2022-08-17 17:30:30 -04:00
dcarns
c7a3d2b098
Merge pull request #1449 from gravitl/feature_v0.14.7_translateiftablestonftables
...
Feature v0.14.7 translateiftablestonftables
2022-08-09 09:06:20 -04:00
Christopher Blaha
6c43466141
trying without the /
2022-08-08 21:31:29 -04:00
cameronts
f4d19f5606
Change method used for detecting nftables from looking for nftables.conf (not always there) to looking for nft executable (there upon apt install nft).
2022-08-06 15:40:40 -07:00
dcarns
40c4a7842c
Merge pull request #1432 from gravitl/feature_v0.14.7_netclientaddvarforpublicipservice
...
Netclient: Add Public IP Service handling to config and GetPublicIP().
2022-08-04 08:50:59 -04:00
Christopher Blaha
35ae2bf131
Application not Applications
2022-08-03 11:45:18 -04:00
Christopher Blaha
70be0b8f8f
changed the path in mac data
2022-08-03 11:41:38 -04:00
cameronts
b9b79ed9f9
Changed order of imports.
2022-08-02 16:25:38 -07:00
cameronts
e6d7c95669
Add netclient detection of nftables.
2022-08-02 15:01:45 -07:00
Abhishek Kondur
e2a7e2c812
GRA-408: remove daemon check
2022-08-02 18:46:30 +04:00
Abhishek Kondur
68d0091c28
GRA-408: func comment
2022-08-02 11:31:38 +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
cameronts
f656a48f3a
Move public IP services handling to a map-based approach to work for daemon (multiple network configs) and CLI-based setting of the IP services.
2022-07-28 14:33:47 -07:00
cameronts
1cb42e8f8b
Add Public IP Service handling to config and GetPublicIP().
2022-07-27 16:45:12 -07:00
Alex Feiszli
1fcf7023da
Merge pull request #1309 from gravitl/hotfix_v0.14.4_macos
...
changes for macos installer
2022-07-07 11:38:00 -04:00
afeiszli
c06c7868c0
moving port check logic
2022-07-06 15:20:28 -04:00
afeiszli
c99e6bf75a
changes for macos installer
2022-07-06 13:26:11 -04:00
Matthew R. Kasun
932eba8d21
fix statticcheck errors
2022-06-16 15:42:32 -04:00
afeiszli
d3a6faa90d
updating route setting logic
2022-06-15 11:18:49 -04:00
afeiszli
bc1eb17bad
removing windows installer portions
2022-05-15 20:26:38 -04:00
Matthew R. Kasun
c8ec507484
add timeout to http.get
2022-05-13 06:04:27 -04:00
0xdcarns
81ab4f76bb
added build tag for gui
2022-05-10 09:24:52 -04:00
afeiszli
13db6ced0c
adding separator
2022-04-25 20:07:47 -04:00
Matthew R. Kasun
7152f6ccd4
remove references to grpc/comms net
2022-04-21 15:53:44 -04:00
Matthew R. Kasun
924403d5b4
ncutils.GetNetclientServerPath
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca >
2022-04-18 15:30:59 -04:00
Matthew R. Kasun
6aa1a68a6f
register command - client
2022-04-13 15:25:35 -04:00
0xdcarns
1a065f680b
added test and changed how strings were generated for make random string
2022-03-25 08:57:15 -04:00
john s
d1fb0b90af
netclient: math.Rand -> crypto.Rand ( #956 )
...
* netclient: math.Rand -> crypto.Rand
Signed-off-by: John Sahhar <john@gravitl.com >
* netclient: math.Rand -> crypto.Rand
* add tests
Signed-off-by: John Sahhar <john@gravitl.com >
* netclient: math.Rand -> crypto.Rand
* add test
Signed-off-by: John Sahhar <john@gravitl.com >
2022-03-23 12:06:26 -06:00
Matthew R. Kasun
11b1098390
replace ncutil.Log/PrintLog with logger.Log
2022-03-21 11:27:25 -04:00
Matthew R. Kasun
b37abab5dd
update logic for getting free udp port
2022-02-22 15:40:03 -05:00
afeiszli
a33ff31a59
adding logic for nodes without wg-quick
2022-02-16 20:19:51 -05:00
afeiszli
0fa480ab9a
reverting windows behavior
2022-02-15 20:51:00 -05:00
0xdcarns
83250980eb
initial chunk approach
2022-02-15 10:15:17 -05:00
Matthew R. Kasun
4ab924af3e
use main.version rather than subpackage variables
2022-02-10 15:10:18 -05:00
afeiszli
d5bae019b3
cleaning logs, fixing mac apply
2022-02-08 20:54:02 -05:00