mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-30 13:35:23 +00:00
Add trace log for machine failing to parce ip in toNode
This commit is contained in:
parent
149279f3d5
commit
642c7824a7
@ -72,6 +72,10 @@ func (m Machine) toNode() (*tailcfg.Node, error) {
|
|||||||
addrs := []netaddr.IPPrefix{}
|
addrs := []netaddr.IPPrefix{}
|
||||||
ip, err := netaddr.ParseIPPrefix(fmt.Sprintf("%s/32", m.IPAddress))
|
ip, err := netaddr.ParseIPPrefix(fmt.Sprintf("%s/32", m.IPAddress))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Trace().
|
||||||
|
Str("func", "toNode").
|
||||||
|
Str("ip", m.IPAddress).
|
||||||
|
Msgf("Failed to parse IP Prefix from IP: %s", m.IPAddress)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
addrs = append(addrs, ip) // missing the ipv6 ?
|
addrs = append(addrs, ip) // missing the ipv6 ?
|
||||||
|
Loading…
Reference in New Issue
Block a user