@@ -39,6 +39,8 @@ namespace shadowsocks_csharp | |||||
Application.EnableVisualStyles(); | Application.EnableVisualStyles(); | ||||
Application.SetCompatibleTextRenderingDefault(false); | Application.SetCompatibleTextRenderingDefault(false); | ||||
ShadowsocksController controller = new ShadowsocksController(); | ShadowsocksController controller = new ShadowsocksController(); | ||||
// TODO run without a main form to save RAM | |||||
Application.Run(new ConfigForm(controller)); | Application.Run(new ConfigForm(controller)); | ||||
@@ -71,22 +71,22 @@ namespace shadowsocks_csharp.Properties { | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to # Sample configuration file for Polipo. -*-sh-*- | |||||
/// | |||||
///# You should not need to use a configuration file; all configuration | |||||
///# variables have reasonable defaults. If you want to use one, you | |||||
///# can copy this to /etc/polipo/config or to ~/.polipo and modify. | |||||
/// | |||||
///# This file only contains some of the configuration variables; see the | |||||
///# list given by ``polipo -v'' and the manual for more. | |||||
/// | |||||
/// | |||||
///### Basic configuration | |||||
///### ******************* | |||||
/// | |||||
///# Uncomment one of these if you want to allow remote clients to | |||||
///# connect: | |||||
/// | |||||
/// Looks up a localized string similar to # Sample configuration file for Polipo. -*-sh-*- | |||||
/// | |||||
///# You should not need to use a configuration file; all configuration | |||||
///# variables have reasonable defaults. If you want to use one, you | |||||
///# can copy this to /etc/polipo/config or to ~/.polipo and modify. | |||||
/// | |||||
///# This file only contains some of the configuration variables; see the | |||||
///# list given by ``polipo -v'' and the manual for more. | |||||
/// | |||||
/// | |||||
///### Basic configuration | |||||
///### ******************* | |||||
/// | |||||
///# Uncomment one of these if you want to allow remote clients to | |||||
///# connect: | |||||
/// | |||||
///# prox [rest of string was truncated]";. | ///# prox [rest of string was truncated]";. | ||||
/// </summary> | /// </summary> | ||||
internal static string polipo_config { | internal static string polipo_config { | ||||
@@ -119,15 +119,15 @@ | |||||
</resheader> | </resheader> | ||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||||
<data name="polarssl_dll" type="System.Resources.ResXFileRef, System.Windows.Forms"> | <data name="polarssl_dll" type="System.Resources.ResXFileRef, System.Windows.Forms"> | ||||
<value>..\polarssl.dll.gz;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
<value>..\Data\polarssl.dll.gz;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
</data> | </data> | ||||
<data name="polipo_config" type="System.Resources.ResXFileRef, System.Windows.Forms"> | <data name="polipo_config" type="System.Resources.ResXFileRef, System.Windows.Forms"> | ||||
<value>..\config.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value> | |||||
<value>..\Data\polipo_config.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value> | |||||
</data> | </data> | ||||
<data name="polipo_exe" type="System.Resources.ResXFileRef, System.Windows.Forms"> | <data name="polipo_exe" type="System.Resources.ResXFileRef, System.Windows.Forms"> | ||||
<value>..\polipo.exe.gz;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
<value>..\Data\polipo.exe.gz;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
</data> | </data> | ||||
<data name="proxy_pac_txt" type="System.Resources.ResXFileRef, System.Windows.Forms"> | <data name="proxy_pac_txt" type="System.Resources.ResXFileRef, System.Windows.Forms"> | ||||
<value>..\proxy.pac.txt.gz;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
<value>..\Data\proxy.pac.txt.gz;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
</data> | </data> | ||||
</root> | </root> |
@@ -14,7 +14,7 @@ | |||||
<FileAlignment>512</FileAlignment> | <FileAlignment>512</FileAlignment> | ||||
<StartupObject> | <StartupObject> | ||||
</StartupObject> | </StartupObject> | ||||
<ApplicationIcon>icon144.ico</ApplicationIcon> | |||||
<ApplicationIcon>Data\icon144.ico</ApplicationIcon> | |||||
<IsWebBootstrapper>false</IsWebBootstrapper> | <IsWebBootstrapper>false</IsWebBootstrapper> | ||||
<FileUpgradeFlags> | <FileUpgradeFlags> | ||||
</FileUpgradeFlags> | </FileUpgradeFlags> | ||||
@@ -87,21 +87,21 @@ | |||||
<Compile Include="Encrypt\PolarSSLEncryptor.cs" /> | <Compile Include="Encrypt\PolarSSLEncryptor.cs" /> | ||||
<Compile Include="Encrypt\TableEncryptor.cs" /> | <Compile Include="Encrypt\TableEncryptor.cs" /> | ||||
<Compile Include="Encrypt\IEncryptor.cs" /> | <Compile Include="Encrypt\IEncryptor.cs" /> | ||||
<Compile Include="PACServer.cs" /> | |||||
<Compile Include="Config.cs" /> | |||||
<Compile Include="ConfigForm.cs"> | |||||
<Compile Include="Controller\PACServer.cs" /> | |||||
<Compile Include="Model\Config.cs" /> | |||||
<Compile Include="View\ConfigForm.cs"> | |||||
<SubType>Form</SubType> | <SubType>Form</SubType> | ||||
</Compile> | </Compile> | ||||
<Compile Include="ConfigForm.Designer.cs"> | |||||
<Compile Include="View\ConfigForm.Designer.cs"> | |||||
<DependentUpon>ConfigForm.cs</DependentUpon> | <DependentUpon>ConfigForm.cs</DependentUpon> | ||||
</Compile> | </Compile> | ||||
<Compile Include="Local.cs" /> | |||||
<Compile Include="PolipoRunner.cs" /> | |||||
<Compile Include="Controller\Local.cs" /> | |||||
<Compile Include="Controller\PolipoRunner.cs" /> | |||||
<Compile Include="Program.cs" /> | <Compile Include="Program.cs" /> | ||||
<Compile Include="Properties\AssemblyInfo.cs" /> | <Compile Include="Properties\AssemblyInfo.cs" /> | ||||
<Compile Include="ShadowsocksController.cs" /> | |||||
<Compile Include="SystemProxy.cs" /> | |||||
<EmbeddedResource Include="ConfigForm.resx"> | |||||
<Compile Include="Controller\ShadowsocksController.cs" /> | |||||
<Compile Include="Controller\SystemProxy.cs" /> | |||||
<EmbeddedResource Include="View\ConfigForm.resx"> | |||||
<DependentUpon>ConfigForm.cs</DependentUpon> | <DependentUpon>ConfigForm.cs</DependentUpon> | ||||
<SubType>Designer</SubType> | <SubType>Designer</SubType> | ||||
</EmbeddedResource> | </EmbeddedResource> | ||||
@@ -116,8 +116,8 @@ | |||||
<DesignTime>True</DesignTime> | <DesignTime>True</DesignTime> | ||||
</Compile> | </Compile> | ||||
<None Include="app.config" /> | <None Include="app.config" /> | ||||
<None Include="polarssl.dll.gz" /> | |||||
<None Include="polipo.exe.gz" /> | |||||
<None Include="Data\polarssl.dll.gz" /> | |||||
<None Include="Data\polipo.exe.gz" /> | |||||
<None Include="Properties\Settings.settings"> | <None Include="Properties\Settings.settings"> | ||||
<Generator>SettingsSingleFileGenerator</Generator> | <Generator>SettingsSingleFileGenerator</Generator> | ||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> | <LastGenOutput>Settings.Designer.cs</LastGenOutput> | ||||
@@ -128,12 +128,11 @@ | |||||
<DesignTimeSharedInput>True</DesignTimeSharedInput> | <DesignTimeSharedInput>True</DesignTimeSharedInput> | ||||
</Compile> | </Compile> | ||||
<Compile Include="simple-json\src\SimpleJson\SimpleJson.cs" /> | <Compile Include="simple-json\src\SimpleJson\SimpleJson.cs" /> | ||||
<None Include="proxy.pac.txt.gz" /> | |||||
<None Include="Data\proxy.pac.txt.gz" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<None Include="config.txt" /> | |||||
<Content Include="icon144.ico" /> | |||||
<None Include="proxy.pac.txt" /> | |||||
<None Include="Data\polipo_config.txt" /> | |||||
<Content Include="Data\icon144.ico" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5"> | <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> | ||||