mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
c6336adb01
* config: loosen up BaseDomain and ServerURL checks Requirements [here][1]: > OK: > server_url: headscale.com, base: clients.headscale.com > server_url: headscale.com, base: headscale.net > > Not OK: > server_url: server.headscale.com, base: headscale.com > > Essentially we have to prevent the possibility where the headscale > server has a URL which can also be assigned to a node. > > So for the Not OK scenario: > > if the server is: server.headscale.com, and a node joins with the name > server, it will be assigned server.headscale.com and that will break > the connection for nodes which will now try to connect to that node > instead of the headscale server. Fixes #2210 [1]: https://github.com/juanfont/headscale/issues/2210#issuecomment-2488165187 * server_url and base_domain: re-word error message, fix a one-off bug and add a test case for the bug. * lint * lint again |
||
---|---|---|
.. | ||
assets | ||
db | ||
derp | ||
mapper | ||
notifier | ||
policy | ||
templates | ||
types | ||
util | ||
app.go | ||
auth_noise.go | ||
auth.go | ||
grpcv1_test.go | ||
grpcv1.go | ||
handlers.go | ||
metrics.go | ||
noise.go | ||
oidc.go | ||
platform_config.go | ||
poll.go | ||
suite_test.go | ||
tailsql.go |