mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 12:05:26 +00:00
Remove method no longer used
This commit is contained in:
parent
37a031d13e
commit
1d9cd88053
21
machine.go
21
machine.go
@ -1121,27 +1121,6 @@ func (h *Headscale) EnableAutoApprovedRoutes(machine *Machine) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *Headscale) RoutesToProto(machine *Machine) *v1.Routes {
|
|
||||||
availableRoutes, err := h.GetAdvertisedRoutes(machine)
|
|
||||||
if err != nil {
|
|
||||||
log.Error().Err(err).Msg("Could not get advertised routes")
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
enabledRoutes, err := h.GetEnabledRoutes(machine)
|
|
||||||
if err != nil {
|
|
||||||
log.Error().Err(err).Msg("Could not get enabled routes")
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return &v1.Routes{
|
|
||||||
AdvertisedRoutes: ipPrefixToString(availableRoutes),
|
|
||||||
EnabledRoutes: ipPrefixToString(enabledRoutes),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (h *Headscale) generateGivenName(suppliedName string, randomSuffix bool) (string, error) {
|
func (h *Headscale) generateGivenName(suppliedName string, randomSuffix bool) (string, error) {
|
||||||
normalizedHostname, err := NormalizeToFQDNRules(
|
normalizedHostname, err := NormalizeToFQDNRules(
|
||||||
suppliedName,
|
suppliedName,
|
||||||
|
Loading…
Reference in New Issue
Block a user