summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmd/derper/mesh.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/derper/mesh.go b/cmd/derper/mesh.go
index aadde1263..9c9a936f5 100644
--- a/cmd/derper/mesh.go
+++ b/cmd/derper/mesh.go
@@ -58,7 +58,7 @@ func startMeshWithHost(s *derp.Server, host string) error {
ips, _ := r.LookupIP(subCtx, "ip", vpcHost)
if len(ips) > 0 {
vpcAddr := net.JoinHostPort(ips[0].String(), port)
- c, err := d.DialContext(ctx, network, vpcAddr)
+ c, err := d.DialContext(subCtx, network, vpcAddr)
if err == nil {
log.Printf("connected to %v (%v) instead of %v", vpcHost, ips[0], base)
return c, nil