mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-21 06:01:42 +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
|
wantProbes[n] = true
|
||||||
if d.probes[n] == nil {
|
if d.probes[n] == nil {
|
||||||
log.Printf("adding DERP TLS probe for %s (%s)", server.Name, region.RegionName)
|
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} {
|
for idx, ipStr := range []string{server.IPv6, server.IPv4} {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user