mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-26 00:17:48 +00:00
Headscale is working (Fixed DERP address)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user