Browse Source

fix a path problem

tags/2.5.5
clowwindy 9 years ago
parent
commit
e84825c25d
2 changed files with 6 additions and 3 deletions
  1. +5
    -2
      shadowsocks-csharp/Controller/Service/PolipoRunner.cs
  2. +1
    -1
      shadowsocks-csharp/Controller/Service/UpdateChecker.cs

+ 5
- 2
shadowsocks-csharp/Controller/Service/PolipoRunner.cs View File

@@ -65,10 +65,13 @@ namespace Shadowsocks.Controller
polipoConfig = polipoConfig.Replace("__POLIPO_BIND_IP__", configuration.shareOverLan ? "0.0.0.0" : "127.0.0.1");
FileManager.ByteArrayToFile(temppath + "/privoxy.conf", System.Text.Encoding.UTF8.GetBytes(polipoConfig));
if (!(temppath.EndsWith("\\") || temppath.EndsWith("/"))) {
temppath = temppath + "\\";
}
_process = new Process();
// Configure the process using the StartInfo properties.
_process.StartInfo.FileName = temppath + "/ss_privoxy.exe";
_process.StartInfo.Arguments = " \"" + temppath + "/privoxy.conf\"";
_process.StartInfo.FileName = temppath + "ss_privoxy.exe";
_process.StartInfo.Arguments = " \"" + temppath + "privoxy.conf\"";
_process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
_process.StartInfo.UseShellExecute = true;
_process.StartInfo.CreateNoWindow = true;


+ 1
- 1
shadowsocks-csharp/Controller/Service/UpdateChecker.cs View File

@@ -18,7 +18,7 @@ namespace Shadowsocks.Controller
public string LatestVersionURL;
public event EventHandler NewVersionFound;
public const string Version = "2.5.4";
public const string Version = "2.5.5";
public void CheckUpdate(Configuration config)
{


Loading…
Cancel
Save