Skip to content

Commit

Permalink
4.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
next-autumn committed Jul 13, 2021
1 parent 2378f0c commit b9b41b6
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 18 deletions.
4 changes: 4 additions & 0 deletions ProxySuper.Core/Services/BrookProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public override void Install()
ConfigureSoftware();
WriteOutput("系统工具安装完成");

WriteOutput("检测网络环境");
EnsureIP();
WriteOutput("检测网络环境完成");

if (Parameters.BrookType == BrookType.wssserver)
{
WriteOutput("检测域名是否绑定本机IP...");
Expand Down
4 changes: 4 additions & 0 deletions ProxySuper.Core/Services/NaiveProxyProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public override void Install()
ConfigFirewalld();
WriteOutput("防火墙配置完成");

WriteOutput("检测网络环境");
EnsureIP();
WriteOutput("检测网络环境完成");

WriteOutput("同步系统和本地时间...");
SyncTimeDiff();
WriteOutput("时间同步完成");
Expand Down
2 changes: 0 additions & 2 deletions ProxySuper.Core/Services/ProjectBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ protected void EnsureSystemEnv()
RunCmd(@"sed -i 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config");
}
}

EnsureIP();
}

/// <summary>
Expand Down
4 changes: 4 additions & 0 deletions ProxySuper.Core/Services/TrojanGoProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ public override void Install()
ConfigFirewalld();
WriteOutput("防火墙配置完成");

WriteOutput("检测网络环境");
EnsureIP();
WriteOutput("检测网络环境完成");

WriteOutput("同步系统和本地时间...");
SyncTimeDiff();
WriteOutput("时间同步完成");
Expand Down
13 changes: 9 additions & 4 deletions ProxySuper.Core/Services/XrayProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public override void Install()
ConfigFirewalld();
WriteOutput("防火墙配置完成");

WriteOutput("检测网络环境");
EnsureIP();
WriteOutput("检测网络环境完成");

WriteOutput("同步系统和本地时间...");
SyncTimeDiff();
WriteOutput("时间同步完成");
Expand All @@ -69,11 +73,12 @@ public override void Install()
WriteOutput("检测域名是否绑定本机IP...");
ValidateDomain();
WriteOutput("域名检测完成");
}

WriteOutput("安装Caddy...");
InstallCaddy();
WriteOutput("Caddy安装完成");

WriteOutput("安装Caddy...");
InstallCaddy();
WriteOutput("Caddy安装完成");
}

WriteOutput("安装Xray-Core...");
InstallXrayWithCert();
Expand Down
3 changes: 2 additions & 1 deletion ProxySuper.Core/ViewModels/XrayEditorViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public int ShadowSocksPort
get => Settings.ShadowSocksPort;
set
{
Settings.VMESS_KCP_Port = value;
Settings.ShadowSocksPort = value;
RaisePropertyChanged("ShadowSocksPort");
}
}
Expand Down Expand Up @@ -142,6 +142,7 @@ public string TrojanPassword
get => Settings.TrojanPassword;
set => Settings.TrojanPassword = value;
}

public bool Checked_Trojan_TCP
{
get
Expand Down
11 changes: 0 additions & 11 deletions ProxySuper.WPF/Controls/XraySettingsControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,17 +301,6 @@
Width="200" />
</StackPanel>

<!--Trojan端口-->
<StackPanel Margin="30,15,0,0"
Orientation="Horizontal"
Visibility="{
Binding Path=Checked_Trojan_TCP,
Converter={StaticResource VisibleConverter}
}">
<Label Content="{DynamicResource TrojanPassword}" Foreground="CadetBlue" Width="120" />
<TextBox Text="{Binding Path=TrojanPassword}" Width="200" />
</StackPanel>

<!--xray prot-->
<StackPanel Margin="30,15,0,0"
Orientation="Horizontal">
Expand Down

0 comments on commit b9b41b6

Please sign in to comment.