mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
minor fixes
This commit is contained in:
parent
43098526d2
commit
fcad6b410f
2 changed files with 5 additions and 1 deletions
|
@ -245,7 +245,7 @@ func (s *EmbeddedDERPServerScenario) CreateHeadscaleEnv(
|
||||||
err = s.CreateTailscaleIsolatedNodesInUser(
|
err = s.CreateTailscaleIsolatedNodesInUser(
|
||||||
hash,
|
hash,
|
||||||
userName,
|
userName,
|
||||||
"head",
|
tsic.VersionHead,
|
||||||
clientCount.WebsocketDERP,
|
clientCount.WebsocketDERP,
|
||||||
tsic.WithWebsocketDERP(true),
|
tsic.WithWebsocketDERP(true),
|
||||||
)
|
)
|
||||||
|
|
|
@ -194,6 +194,10 @@ func WithNetfilter(state string) Option {
|
||||||
// Attempts to use it with any other version is a bug in the calling code.
|
// Attempts to use it with any other version is a bug in the calling code.
|
||||||
func WithBuildTag(tag string) Option {
|
func WithBuildTag(tag string) Option {
|
||||||
return func(tsic *TailscaleInContainer) {
|
return func(tsic *TailscaleInContainer) {
|
||||||
|
if tsic.version != VersionHead {
|
||||||
|
panic(errInvalidClientConfig)
|
||||||
|
}
|
||||||
|
|
||||||
tsic.buildConfig.tags = append(
|
tsic.buildConfig.tags = append(
|
||||||
tsic.buildConfig.tags, tag,
|
tsic.buildConfig.tags, tag,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue