Changeset 402 for binary-improvements2/WebServer/src/ConnectionHandler.cs
- Timestamp:
- Jan 27, 2023, 7:28:00 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/ConnectionHandler.cs
r391 r402 2 2 using System.Collections.Generic; 3 3 using System.Net; 4 using Platform.Steam;5 4 6 5 namespace Webserver { … … 19 18 20 19 if (!Equals (con.Endpoint, _ip)) { 21 // Fixed: Allow different clients from same NAT network 22 // connections.Remove (_sessionId); 20 connections.Remove (_sessionId); 23 21 return null; 24 22 } … … 33 31 } 34 32 35 public WebConnection LogIn ( ulong _steamId, IPAddress _ip) {33 public WebConnection LogIn (PlatformUserIdentifierAbs _userId, IPAddress _ip) { 36 34 string sessionId = Guid.NewGuid ().ToString (); 37 PlatformUserIdentifierAbs userId = new UserIdentifierSteam (_steamId); 38 WebConnection con = new WebConnection (sessionId, _ip, userId); 35 WebConnection con = new WebConnection (sessionId, _ip, _userId); 39 36 connections.Add (sessionId, con); 40 37 return con;
Note:
See TracChangeset
for help on using the changeset viewer.