mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
Removed unused method
This commit is contained in:
parent
a33b5a5c00
commit
43ad0d4416
1 changed files with 0 additions and 13 deletions
13
utils.go
13
utils.go
|
@ -135,19 +135,6 @@ func decode(
|
|||
return nil
|
||||
}
|
||||
|
||||
func encode(
|
||||
v interface{},
|
||||
pubKey *key.MachinePublic,
|
||||
privKey *key.MachinePrivate,
|
||||
) ([]byte, error) {
|
||||
b, err := json.Marshal(v)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return privKey.SealTo(*pubKey, b), nil
|
||||
}
|
||||
|
||||
func (h *Headscale) getAvailableIPs() (MachineAddresses, error) {
|
||||
var ips MachineAddresses
|
||||
var err error
|
||||
|
|
Loading…
Reference in a new issue