mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-10 11:14:21 +02:00
reflect.DeepEqual is a value copy that causes golang to continuously allocate memory
This commit is contained in:
@@ -155,7 +155,7 @@ func (machine *Machine) isOnline() bool {
|
||||
|
||||
func containsAddresses(inputs []string, addrs []string) bool {
|
||||
for _, addr := range addrs {
|
||||
if contains(inputs, addr) {
|
||||
if containsStr(inputs, addr) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user