ring group lua minor improvement (#5998)

ring_group_distinctive_ring is always an empty string
This commit is contained in:
agree 2021-08-20 20:28:40 -04:00 committed by GitHub
parent 57121b627b
commit b0fef5135c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -753,7 +753,7 @@
session:execute("set", "uuids="..uuids);
--export the ringback
if (ring_group_distinctive_ring ~= nil) then
if (ring_group_distinctive_ring and #ring_group_distinctive_ring > 0) then
if (local_ip_v4 ~= nil) then
ring_group_distinctive_ring = ring_group_distinctive_ring:gsub("${local_ip_v4}", local_ip_v4);
end