net/wgpeerselector: keep same datatype on ubus status

This commit is contained in:
genofire 2021-09-30 20:16:35 +02:00
parent 0a334b837f
commit 1facb9143b
1 changed files with 1 additions and 3 deletions

View File

@ -323,9 +323,7 @@ function WGPeerSelector:status()
established = established
}
else
result.peers[peer.name] = false -- Fastd uses "null" here, but unfortunately
-- lua does not support setting table_keys to
-- nil.
result.peers[peer.name] = { }
end
end