Ignore:
Timestamp:
Sep 5, 2014, 4:03:00 PM (10 years ago)
Author:
alloc
Message:

fixes

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  
    1111                public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user)
    1212                {
    13                         Log.Out ("" + req.QueryString);
    14 
    1513                        if (req.QueryString ["steamid"] == null) {
    1614                                resp.StatusCode = (int)HttpStatusCode.InternalServerError;
  • binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/Web.cs

    r163 r168  
    11using System;
    22using System.Collections.Generic;
     3using System.IO;
    34using System.Net;
    45using System.Text;
     
    2526
    2627                                _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;
    2830                                _listener.Start ();
    2931
     
    4345                                );
    4446
    45                                 Log.Out ("Started Webserver on " + port);
     47                                Log.Out ("Started Webserver on " + port + " (authentication " + (_listener.AuthenticationSchemes == AuthenticationSchemes.Basic ? "enabled" : "disabled") + ")");
    4648                        } catch (Exception e) {
    4749                                Log.Out ("Error in Web.ctor: " + e);
Note: See TracChangeset for help on using the changeset viewer.