From 6a397345aac23d3b86bba0953d67ee97d224498b Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Wed, 24 Feb 2021 00:32:34 +0100 Subject: [PATCH] Headscale is working (Fixed DERP address) --- machine.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/machine.go b/machine.go index 3f67bada..a81a9be8 100644 --- a/machine.go +++ b/machine.go @@ -107,7 +107,7 @@ func (m Machine) toNode() (*tailcfg.Node, error) { Addresses: addrs, AllowedIPs: allowedIPs, Endpoints: endpoints, - // DERP: "127.3.3.40:4", // wtf? + DERP: fmt.Sprintf("127.3.3.40:%d", hostinfo.NetInfo.PreferredDERP), Hostinfo: hostinfo, Created: m.CreatedAt, @@ -116,6 +116,7 @@ func (m Machine) toNode() (*tailcfg.Node, error) { KeepAlive: true, MachineAuthorized: m.Registered, } + // n.Key.MarshalText() return &n, nil }