net/wgpeerselector: keep same datatype on ubus status (#250)

This commit is contained in:
genofire 2021-10-03 10:58:43 +02:00 committed by GitHub
parent 0a334b837f
commit b4858b1509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

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