summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2020-02-05 17:04:43 +0000
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2020-02-05 17:04:43 +0000
commit95ae6b1f2e61437e7b40e3a44dd8914d4086b8fa (patch)
tree9c8927c0ad7e2e5a87958f81626d213ca6fab8c1 /indra/newview/llappviewer.cpp
parenteeaeb57dde3982d5dbac04eacee2cb23667a6aae (diff)
parent0f948988b8c5e13852f765be41f6cf011c1924f1 (diff)
Merged in SL-12660
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index c94ec70766..da418fbea6 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -3118,8 +3118,9 @@ LLSD LLAppViewer::getViewerInfo() const
info["POSITION"] = ll_sd_from_vector3d(pos);
info["POSITION_LOCAL"] = ll_sd_from_vector3(gAgent.getPosAgentFromGlobal(pos));
info["REGION"] = gAgent.getRegion()->getName();
- info["HOSTNAME"] = gAgent.getRegion()->getHost().getHostName();
- info["HOSTIP"] = gAgent.getRegion()->getHost().getString();
+
+ boost::regex regex("sim[0-9]*.");
+ info["HOSTNAME"] = boost::regex_replace(gAgent.getRegion()->getHost().getHostName(), regex, "");
info["SERVER_VERSION"] = gLastVersionChannel;
LLSLURL slurl;
LLAgentUI::buildSLURL(slurl);