mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 04:47:36 +00:00
remove "stripEmailDomain" argument
This commit makes a wrapper function round the normalisation requiring "stripEmailDomain" which has to be passed in almost all functions of headscale by loading it from Viper instead. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:

committed by
Kristoffer Dalby

parent
161243c787
commit
717abe89c1
@@ -40,7 +40,6 @@ func (h *Headscale) handlePoll(
|
||||
h.cfg.DNSConfig,
|
||||
h.cfg.LogTail.Enabled,
|
||||
h.cfg.RandomizeClientPort,
|
||||
h.cfg.OIDC.StripEmaildomain,
|
||||
)
|
||||
|
||||
machine.Hostname = mapRequest.Hostinfo.Hostname
|
||||
@@ -265,7 +264,6 @@ func (h *Headscale) pollNetMapStream(
|
||||
h.cfg.DNSConfig,
|
||||
h.cfg.LogTail.Enabled,
|
||||
h.cfg.RandomizeClientPort,
|
||||
h.cfg.OIDC.StripEmaildomain,
|
||||
)
|
||||
|
||||
h.pollNetMapStreamWG.Add(1)
|
||||
@@ -656,7 +654,6 @@ func (h *Headscale) scheduledPollWorker(
|
||||
h.cfg.DNSConfig,
|
||||
h.cfg.LogTail.Enabled,
|
||||
h.cfg.RandomizeClientPort,
|
||||
h.cfg.OIDC.StripEmaildomain,
|
||||
)
|
||||
|
||||
keepAliveTicker := time.NewTicker(keepAliveInterval)
|
||||
|
Reference in New Issue
Block a user