- Timestamp:
- Sep 9, 2014, 8:04:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/NetConnections/NetTelnetServer.cs
r133 r182 4 4 using System.Net; 5 5 using System.Net.Sockets; 6 using System.Reflection;7 6 using System.Threading; 8 7 using UnityEngine; … … 17 16 { 18 17 try { 19 Log.Out ("[7dtd-server-fixes by Alloc] Version: " + Assembly.GetExecutingAssembly ().GetName ().Version);20 servers.Add (new Servers.Telnet.Telnet (port));21 22 int webPort = GamePrefs.GetInt (EnumGamePrefs.ControlPanelPort);23 if (GamePrefs.GetBool (EnumGamePrefs.ControlPanelEnabled) && webPort > 0 && webPort < 65534) {24 if (Directory.Exists (Application.dataPath + "/../webserver")) {25 servers.Add (new Servers.Web.Web (webPort + 2));26 }27 }28 18 } catch (Exception e) { 29 19 Log.Out ("Error in NetTelnetServer.init: " + e); 30 20 } 21 } 22 23 public static void RegisterServer (IServer serv) 24 { 25 servers.Add (serv); 31 26 } 32 27
Note:
See TracChangeset
for help on using the changeset viewer.