mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-29 07:27:36 +08:00
saveEedit
This commit is contained in:
@@ -530,7 +530,7 @@ namespace System.Application.Services.Implementation
|
||||
//GenericCertificate = proxyServer.CertificateManager.RootCertificate
|
||||
};
|
||||
|
||||
MessageBox.Show($"Liunx Hosts 代理模式 需要 Root 权限,或使用 “sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port {freeport}” 映射到其他端口且修改代理设置监听端口");
|
||||
Browser2.Open($"https://www.steampp.net/unixhostaccess?prot={freeport}");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -242,7 +242,7 @@ namespace System.Application.Services
|
||||
|
||||
if (r.ResultType != OperationResultType.Success)
|
||||
{
|
||||
if (OperatingSystem2.IsMacOS || (OperatingSystem2.IsLinux && Environment.UserName.ToLower() != "root"))
|
||||
if (OperatingSystem2.IsMacOS)
|
||||
{
|
||||
Browser2.Open("https://www.steampp.net/unixhostaccess");
|
||||
//platformService.RunShell($" \\cp \"{Path.Combine(IOPath.CacheDirectory, "hosts")}\" \"{platformService.HostsFilePath}\"");
|
||||
|
||||
Reference in New Issue
Block a user