mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 15:27:37 +00:00
reformat code (#2019)
* reformat code This is mostly an automated change with `make lint`. I had to manually please golangci-lint in routes_test because of a short variable name. * fix start -> strategy which was wrongly corrected by linter
This commit is contained in:
@@ -177,9 +177,9 @@ func WithPostgres() Option {
|
||||
}
|
||||
|
||||
// WithIPAllocationStrategy sets the tests IP Allocation strategy.
|
||||
func WithIPAllocationStrategy(strat types.IPAllocationStrategy) Option {
|
||||
func WithIPAllocationStrategy(strategy types.IPAllocationStrategy) Option {
|
||||
return func(hsic *HeadscaleInContainer) {
|
||||
hsic.env["HEADSCALE_PREFIXES_ALLOCATION"] = string(strat)
|
||||
hsic.env["HEADSCALE_PREFIXES_ALLOCATION"] = string(strategy)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user