mirror of
https://github.com/Novetus/Novetus_src.git
synced 2025-01-31 09:41:33 +02:00
Attempt to fix web proxy issues.
This commit is contained in:
parent
47062cda91
commit
a066d399ba
@ -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>
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user