mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-10 08:40:07 +09:00
types: drop unused Nodes.ContainsNodeKey
This commit is contained in:
committed by
Kristoffer Dalby
parent
7ffdba7175
commit
85bda7c2c9
@@ -504,16 +504,6 @@ func (nodes Nodes) FilterByIP(ip netip.Addr) Nodes {
|
|||||||
return found
|
return found
|
||||||
}
|
}
|
||||||
|
|
||||||
func (nodes Nodes) ContainsNodeKey(nodeKey key.NodePublic) bool {
|
|
||||||
for _, node := range nodes {
|
|
||||||
if node.NodeKey == nodeKey {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
func (node *Node) GetFQDN(baseDomain string) (string, error) {
|
func (node *Node) GetFQDN(baseDomain string) (string, error) {
|
||||||
if node.GivenName == "" {
|
if node.GivenName == "" {
|
||||||
return "", fmt.Errorf("creating valid FQDN: %w", ErrNodeHasNoGivenName)
|
return "", fmt.Errorf("creating valid FQDN: %w", ErrNodeHasNoGivenName)
|
||||||
|
|||||||
Reference in New Issue
Block a user