diff --git a/OpenSim/Services/HypergridService/GatekeeperService.cs b/OpenSim/Services/HypergridService/GatekeeperService.cs index 822c02ac8e..833f85e6e4 100644 --- a/OpenSim/Services/HypergridService/GatekeeperService.cs +++ b/OpenSim/Services/HypergridService/GatekeeperService.cs @@ -65,6 +65,7 @@ namespace OpenSim.Services.HypergridService private static bool m_ForeignAgentsAllowed = true; private static readonly List m_ForeignsAllowedExceptions = new(); private static readonly List m_ForeignsDisallowedExceptions = new(); + private static string m_DeniedMessage = "Destination does not allow visitors from your world"; private static UUID m_ScopeID; private static bool m_AllowTeleportsToAnyRegion; @@ -187,6 +188,8 @@ namespace OpenSim.Services.HypergridService LoadDomainExceptionsFromConfig(serverConfig, "AllowExcept", m_ForeignsAllowedExceptions); LoadDomainExceptionsFromConfig(serverConfig, "DisallowExcept", m_ForeignsDisallowedExceptions); + m_DeniedMessage = serverConfig.GetString("DeniedMessage", m_DeniedMessage); + if (m_GridService is null || m_PresenceService is null || m_SimulationService is null) throw new Exception("Unable to load a required plugin, Gatekeeper Service cannot function."); @@ -443,7 +446,7 @@ namespace OpenSim.Services.HypergridService if (!allowed) { - reason = "Destination does not allow visitors from your world"; + reason = m_DeniedMessage; m_log.InfoFormat("[GATEKEEPER SERVICE]: Foreign agents are not permitted {0} {1} @ {2}. Refusing service.", aCircuit.firstname, aCircuit.lastname, aCircuit.ServiceURLs["HomeURI"]); return false; diff --git a/bin/Robust.HG.ini.example b/bin/Robust.HG.ini.example index 95816c7ce3..bf95543e9b 100644 --- a/bin/Robust.HG.ini.example +++ b/bin/Robust.HG.ini.example @@ -731,6 +731,9 @@ ;; Allow banning via hashed MAC must be set in both [GatekeeperService] and [LoginService] ;DeniedMacs = "YOURLONGMACTRSING ANOTHERMAC" + ;; What to show to a denied avatar wanting to visit: + ;DeniedMessage = "Destination does not allow visitors from your world" + [UserAgentService] LocalServiceModule = "OpenSim.Services.HypergridService.dll:UserAgentService" ;; for the service