mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
Add support for custom DERP port in TLS prober
Updates #10146 Signed-off-by: Thomas Kosiewski <thoma471@googlemail.com>
This commit is contained in:
parent
839fee9ef4
commit
96a80fcce3
@ -88,7 +88,13 @@ func (d *derpProber) ProbeMap(ctx context.Context) error {
|
||||
wantProbes[n] = true
|
||||
if d.probes[n] == nil {
|
||||
log.Printf("adding DERP TLS probe for %s (%s)", server.Name, region.RegionName)
|
||||
d.probes[n] = d.p.Run(n, d.tlsInterval, labels, d.tlsProbeFn(server.HostName+":443"))
|
||||
|
||||
derpPort := 443
|
||||
if server.DERPPort != 0 {
|
||||
derpPort = server.DERPPort
|
||||
}
|
||||
|
||||
d.probes[n] = d.p.Run(n, d.tlsInterval, labels, d.tlsProbeFn(fmt.Sprintf("%s:%d", server.HostName, derpPort)))
|
||||
}
|
||||
|
||||
for idx, ipStr := range []string{server.IPv6, server.IPv4} {
|
||||
|
Loading…
Reference in New Issue
Block a user