diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 17 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 22 |
2 files changed, 16 insertions, 23 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index db81fea..575e5a2 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -232,7 +232,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
232 | public event ScriptReset OnScriptReset; | 232 | public event ScriptReset OnScriptReset; |
233 | public event GetScriptRunning OnGetScriptRunning; | 233 | public event GetScriptRunning OnGetScriptRunning; |
234 | public event SetScriptRunning OnSetScriptRunning; | 234 | public event SetScriptRunning OnSetScriptRunning; |
235 | public event Action<Vector3, bool> OnAutoPilotGo; | 235 | public event Action<Vector3, bool, bool> OnAutoPilotGo; |
236 | public event TerrainUnacked OnUnackedTerrain; | 236 | public event TerrainUnacked OnUnackedTerrain; |
237 | public event ActivateGesture OnActivateGesture; | 237 | public event ActivateGesture OnActivateGesture; |
238 | public event DeactivateGesture OnDeactivateGesture; | 238 | public event DeactivateGesture OnDeactivateGesture; |
@@ -4173,8 +4173,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4173 | while (updatesThisCall < m_maxUpdates) | 4173 | while (updatesThisCall < m_maxUpdates) |
4174 | { | 4174 | { |
4175 | lock (m_entityProps.SyncRoot) | 4175 | lock (m_entityProps.SyncRoot) |
4176 | if (!m_entityProps.TryDequeue(out iupdate, out timeinqueue)) | 4176 | if (!m_entityProps.TryDequeue(out iupdate, out timeinqueue)) |
4177 | break; | 4177 | break; |
4178 | 4178 | ||
4179 | ObjectPropertyUpdate update = (ObjectPropertyUpdate)iupdate; | 4179 | ObjectPropertyUpdate update = (ObjectPropertyUpdate)iupdate; |
4180 | if (update.SendFamilyProps) | 4180 | if (update.SendFamilyProps) |
@@ -6145,9 +6145,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6145 | RezMultipleAttachmentsFromInv handlerRezMultipleAttachments = OnRezMultipleAttachmentsFromInv; | 6145 | RezMultipleAttachmentsFromInv handlerRezMultipleAttachments = OnRezMultipleAttachmentsFromInv; |
6146 | if (handlerRezMultipleAttachments != null) | 6146 | if (handlerRezMultipleAttachments != null) |
6147 | { | 6147 | { |
6148 | RezMultipleAttachmentsFromInvPacket rez = (RezMultipleAttachmentsFromInvPacket)Pack; | 6148 | List<KeyValuePair<UUID, uint>> rezlist = new List<KeyValuePair<UUID, uint>>(); |
6149 | handlerRezMultipleAttachments(this, rez.HeaderData, | 6149 | foreach (RezMultipleAttachmentsFromInvPacket.ObjectDataBlock obj in ((RezMultipleAttachmentsFromInvPacket)Pack).ObjectData) |
6150 | rez.ObjectData); | 6150 | rezlist.Add(new KeyValuePair<UUID, uint>(obj.ItemID, obj.AttachmentPt)); |
6151 | handlerRezMultipleAttachments(this, rezlist); | ||
6151 | } | 6152 | } |
6152 | 6153 | ||
6153 | return true; | 6154 | return true; |
@@ -11756,9 +11757,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
11756 | locy = Convert.ToSingle(args[1]) - (float)regionY; | 11757 | locy = Convert.ToSingle(args[1]) - (float)regionY; |
11757 | locz = Convert.ToSingle(args[2]); | 11758 | locz = Convert.ToSingle(args[2]); |
11758 | 11759 | ||
11759 | Action<Vector3, bool> handlerAutoPilotGo = OnAutoPilotGo; | 11760 | Action<Vector3, bool, bool> handlerAutoPilotGo = OnAutoPilotGo; |
11760 | if (handlerAutoPilotGo != null) | 11761 | if (handlerAutoPilotGo != null) |
11761 | handlerAutoPilotGo(new Vector3(locx, locy, locz), false); | 11762 | handlerAutoPilotGo(new Vector3(locx, locy, locz), false, false); |
11762 | } | 11763 | } |
11763 | 11764 | ||
11764 | /// <summary> | 11765 | /// <summary> |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index fead4d9..d5b061b 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -929,25 +929,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
929 | UUID sessionID = useCircuitCode.CircuitCode.SessionID; | 929 | UUID sessionID = useCircuitCode.CircuitCode.SessionID; |
930 | uint circuitCode = useCircuitCode.CircuitCode.Code; | 930 | uint circuitCode = useCircuitCode.CircuitCode.Code; |
931 | 931 | ||
932 | if (m_scene.RegionStatus != RegionStatus.SlaveScene) | 932 | AuthenticateResponse sessionInfo; |
933 | if (IsClientAuthorized(useCircuitCode, out sessionInfo)) | ||
933 | { | 934 | { |
934 | AuthenticateResponse sessionInfo; | 935 | AddClient(circuitCode, agentID, sessionID, remoteEndPoint, sessionInfo); |
935 | if (IsClientAuthorized(useCircuitCode, out sessionInfo)) | ||
936 | { | ||
937 | AddClient(circuitCode, agentID, sessionID, remoteEndPoint, sessionInfo); | ||
938 | } | ||
939 | else | ||
940 | { | ||
941 | // Don't create circuits for unauthorized clients | ||
942 | m_log.WarnFormat( | ||
943 | "[LLUDPSERVER]: Connection request for client {0} connecting with unnotified circuit code {1} from {2}", | ||
944 | useCircuitCode.CircuitCode.ID, useCircuitCode.CircuitCode.Code, remoteEndPoint); | ||
945 | } | ||
946 | } | 936 | } |
947 | else | 937 | else |
948 | { | 938 | { |
949 | // Slave regions don't accept new clients | 939 | // Don't create circuits for unauthorized clients |
950 | m_log.Debug("[LLUDPSERVER]: Slave region " + m_scene.RegionInfo.RegionName + " ignoring UseCircuitCode packet"); | 940 | m_log.WarnFormat( |
941 | "[LLUDPSERVER]: Connection request for client {0} connecting with unnotified circuit code {1} from {2}", | ||
942 | useCircuitCode.CircuitCode.ID, useCircuitCode.CircuitCode.Code, remoteEndPoint); | ||
951 | } | 943 | } |
952 | } | 944 | } |
953 | 945 | ||