- Timestamp:
- Sep 5, 2014, 4:03:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.