mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
Headscale is working (Fixed DERP address)
This commit is contained in:
parent
93c711d2d8
commit
6a397345aa
@ -107,7 +107,7 @@ func (m Machine) toNode() (*tailcfg.Node, error) {
|
|||||||
Addresses: addrs,
|
Addresses: addrs,
|
||||||
AllowedIPs: allowedIPs,
|
AllowedIPs: allowedIPs,
|
||||||
Endpoints: endpoints,
|
Endpoints: endpoints,
|
||||||
// DERP: "127.3.3.40:4", // wtf?
|
DERP: fmt.Sprintf("127.3.3.40:%d", hostinfo.NetInfo.PreferredDERP),
|
||||||
|
|
||||||
Hostinfo: hostinfo,
|
Hostinfo: hostinfo,
|
||||||
Created: m.CreatedAt,
|
Created: m.CreatedAt,
|
||||||
@ -116,6 +116,7 @@ func (m Machine) toNode() (*tailcfg.Node, error) {
|
|||||||
KeepAlive: true,
|
KeepAlive: true,
|
||||||
MachineAuthorized: m.Registered,
|
MachineAuthorized: m.Registered,
|
||||||
}
|
}
|
||||||
|
|
||||||
// n.Key.MarshalText()
|
// n.Key.MarshalText()
|
||||||
return &n, nil
|
return &n, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user