This commit is contained in:
clowwindy
2014-11-07 21:46:27 +08:00
parent d4c3a4c331
commit ce6d4964be
9 changed files with 120 additions and 38 deletions
+10 -3
View File
@@ -20,13 +20,20 @@ namespace shadowsocks_csharp
[STAThread]
static void Main()
{
string tempPath = Path.GetTempPath();
string dllPath = tempPath + "/polarssl.dll";
try
{
string tempPath = Path.GetTempPath();
string dllPath = tempPath + "/polarssl.dll";
FileManager.UncompressFile(dllPath, Resources.polarssl_dll);
LoadLibrary(dllPath);
}
catch (IOException e)
{
Console.WriteLine(e.ToString());
}
LoadLibrary(dllPath);
try
{
FileStream fs = new FileStream("shadowsocks.log", FileMode.Append);
TextWriter tmp = Console.Out;
StreamWriter sw = new StreamWriter(fs);