Attempt to fix web proxy issues.

This commit is contained in:
Bitl 2024-03-05 21:48:10 -07:00
parent 47062cda91
commit a066d399ba
6 changed files with 39 additions and 4 deletions

View File

@ -1,5 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Novetus.Bootstrapper.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
</startup>

View File

@ -67,7 +67,7 @@ namespace Novetus.Core
try
{
IExtension newExt = (IExtension)Extension.LoadScriptFromContent(file);
IExtension newExt = (IExtension)ExtensionScript.LoadScriptFromContent(file);
ExtensionList.Add(newExt);
index = ExtensionList.IndexOf(newExt);
Util.ConsolePrint("Loaded extension " + newExt.FullInfoString() + " from " + Path.GetFileName(file), 3);
@ -152,8 +152,8 @@ namespace Novetus.Core
}
#endregion
#region Script
public class Extension
#region ExtensionScript
public class ExtensionScript
{
public static object LoadScriptFromContent(string scriptPath)
{

View File

@ -36,7 +36,7 @@ namespace Novetus.Core
public ExtensionManager Manager = new ExtensionManager();
private static readonly SemaphoreLocker _locker = new SemaphoreLocker();
public bool Started { get { return Server.ProxyRunning; } }
private int WebProxyPort = 61710;
private int WebProxyPort = 6171;
public void DoSetup()
{

View File

@ -105,6 +105,11 @@ namespace NovetusLauncher
GlobalVars.UserConfiguration.ReadSetting("Map") + "]";
}
if (GlobalVars.UserConfiguration.ReadSettingBool("WebProxyEnabled"))
{
GlobalVars.Proxy.Start();
}
Splash splash = SplashReader.GetSplash();
SplashLabel.Text = splash.SplashText;

View File

@ -1,5 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Novetus.Launcher.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>

View File

@ -1,5 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Novetus.URI.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>