Csaba Sarkadi
1a6e5d8770
Add support for multiple IP prefixes
2022-01-16 14:18:22 +01:00
Kristoffer Dalby
a8a8f01429
Make "authKey" a constant
2021-11-18 08:49:55 +00:00
Kristoffer Dalby
0c005a6b01
Add and fix errname
2021-11-15 16:33:16 +00:00
Kristoffer Dalby
2dde1242cf
Fix formatting
2021-11-15 16:16:35 +00:00
Kristoffer Dalby
8ae682b412
Fix var name length in tests
2021-11-15 16:16:04 +00:00
Kristoffer Dalby
53ed749f45
Start work on making gocritic pass
2021-11-14 18:44:37 +01:00
Kristoffer Dalby
03b7ec62ca
Go format with shorter lines
2021-11-13 08:36:45 +00:00
Kristoffer Dalby
94dbaa6822
Clean up the return of "pointer list"
...
This commit is getting rid of a bunch of returned list pointers.
2021-11-04 22:16:56 +00:00
Ward Vandewege
c8e1afb14b
When attempting to unshare a node from the primary namespace, return
...
errorMachineNotShared, not errorSameNamespace. Add test for same.
2021-10-24 17:50:21 -04:00
Ward Vandewege
d35f5fe498
Apply some DRY to the sharing tests.
2021-10-18 17:52:38 -04:00
Ward Vandewege
9e3339b4f1
Add cli support for unsharing a node from a namespace.
2021-10-17 16:29:46 -04:00
Juan Font Alonso
6aa763a1ae
Expanded unit tests to better cover sharing nodes
2021-10-13 20:56:32 +02:00
Juan Font Alonso
ebfb8c8c5e
Fix tests, as IDs of Machines where wrongly starting in 0
2021-10-13 20:48:50 +02:00
Juan Font Alonso
7f2027d7f2
Added unit tests
2021-10-10 23:55:18 +02:00
Kristoffer Dalby
f6a7564ec8
Add more test cases to prove that peers and shared peers work properly
2021-10-04 17:40:21 +00:00
Kristoffer Dalby
0d4a006536
Consitently use Machine pointers
...
This commit rewrites a bunch of the code to always use *Machine instead
of a mix of both, and a mix of tailcfg.Node and Machine.
Now we use *Machine, and if tailcfg.Node is needed, it is converted just
before needed.
2021-10-02 22:00:09 +01:00
Juan Font
55f3e07bd4
Apply suggestions from code review
...
Removed one letter variables
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2021-09-10 00:26:46 +02:00
Juan Font
75a342f96e
Renamed files
2021-09-06 14:40:37 +02:00