Changeset 168 for binary-improvements/7dtd-server-fixes/src/NetConnections
- Timestamp:
- Sep 5, 2014, 4:03:00 PM (10 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/API/GetPlayerInventory.cs
r163 r168 11 11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user) 12 12 { 13 Log.Out ("" + req.QueryString);14 15 13 if (req.QueryString ["steamid"] == null) { 16 14 resp.StatusCode = (int)HttpStatusCode.InternalServerError; -
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/Web.cs
r163 r168 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.IO; 3 4 using System.Net; 4 5 using System.Text; … … 25 26 26 27 _listener.Prefixes.Add (String.Format ("http://*:{0}/", port)); 27 //_listener.AuthenticationSchemes = AuthenticationSchemes.Basic; 28 if (File.Exists (Application.dataPath + "/../webserver/protect")) 29 _listener.AuthenticationSchemes = AuthenticationSchemes.Basic; 28 30 _listener.Start (); 29 31 … … 43 45 ); 44 46 45 Log.Out ("Started Webserver on " + port );47 Log.Out ("Started Webserver on " + port + " (authentication " + (_listener.AuthenticationSchemes == AuthenticationSchemes.Basic ? "enabled" : "disabled") + ")"); 46 48 } catch (Exception e) { 47 49 Log.Out ("Error in Web.ctor: " + e);
Note:
See TracChangeset
for help on using the changeset viewer.