From ee56c507ab9fb370a754b24026e1a8b100bb447a Mon Sep 17 00:00:00 2001
From: Maxim Nikolenko <maximnproductengine@lindenlab.com>
Date: Tue, 8 Aug 2023 19:02:30 +0300
Subject: [PATCH] SL-18049 use instance_offset appropriately

---
 indra/newview/llvoicevivox.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp
index 72e04121949..1b9aef193cc 100644
--- a/indra/newview/llvoicevivox.cpp
+++ b/indra/newview/llvoicevivox.cpp
@@ -967,7 +967,7 @@ bool LLVivoxVoiceClient::startAndLaunchDaemon()
                 // to increment instance_offset on EADDRINUSE.
                 // But for now just use rand
                 static U32 instance_offset = portrange * ll_rand(20);
-                port = portbase + portoffset + portrange;
+                port = portbase + portoffset + instance_offset;
             }
             else
             {
-- 
GitLab