1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-25 22:56:09 +03:00
This commit is contained in:
autumn 2021-07-13 10:12:15 +08:00
parent 2378f0c416
commit b9b41b6554
7 changed files with 23 additions and 18 deletions

View File

@ -38,6 +38,10 @@ namespace ProxySuper.Core.Services
ConfigureSoftware(); ConfigureSoftware();
WriteOutput("系统工具安装完成"); WriteOutput("系统工具安装完成");
WriteOutput("检测网络环境");
EnsureIP();
WriteOutput("检测网络环境完成");
if (Parameters.BrookType == BrookType.wssserver) if (Parameters.BrookType == BrookType.wssserver)
{ {
WriteOutput("检测域名是否绑定本机IP..."); WriteOutput("检测域名是否绑定本机IP...");

View File

@ -57,6 +57,10 @@ namespace ProxySuper.Core.Services
ConfigFirewalld(); ConfigFirewalld();
WriteOutput("防火墙配置完成"); WriteOutput("防火墙配置完成");
WriteOutput("检测网络环境");
EnsureIP();
WriteOutput("检测网络环境完成");
WriteOutput("同步系统和本地时间..."); WriteOutput("同步系统和本地时间...");
SyncTimeDiff(); SyncTimeDiff();
WriteOutput("时间同步完成"); WriteOutput("时间同步完成");

View File

@ -150,8 +150,6 @@ namespace ProxySuper.Core.Services
RunCmd(@"sed -i 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config"); RunCmd(@"sed -i 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config");
} }
} }
EnsureIP();
} }
/// <summary> /// <summary>

View File

@ -87,6 +87,10 @@ namespace ProxySuper.Core.Services
ConfigFirewalld(); ConfigFirewalld();
WriteOutput("防火墙配置完成"); WriteOutput("防火墙配置完成");
WriteOutput("检测网络环境");
EnsureIP();
WriteOutput("检测网络环境完成");
WriteOutput("同步系统和本地时间..."); WriteOutput("同步系统和本地时间...");
SyncTimeDiff(); SyncTimeDiff();
WriteOutput("时间同步完成"); WriteOutput("时间同步完成");

View File

@ -60,6 +60,10 @@ namespace ProxySuper.Core.Services
ConfigFirewalld(); ConfigFirewalld();
WriteOutput("防火墙配置完成"); WriteOutput("防火墙配置完成");
WriteOutput("检测网络环境");
EnsureIP();
WriteOutput("检测网络环境完成");
WriteOutput("同步系统和本地时间..."); WriteOutput("同步系统和本地时间...");
SyncTimeDiff(); SyncTimeDiff();
WriteOutput("时间同步完成"); WriteOutput("时间同步完成");
@ -69,11 +73,12 @@ namespace ProxySuper.Core.Services
WriteOutput("检测域名是否绑定本机IP..."); WriteOutput("检测域名是否绑定本机IP...");
ValidateDomain(); ValidateDomain();
WriteOutput("域名检测完成"); WriteOutput("域名检测完成");
}
WriteOutput("安装Caddy...");
InstallCaddy(); WriteOutput("安装Caddy...");
WriteOutput("Caddy安装完成"); InstallCaddy();
WriteOutput("Caddy安装完成");
}
WriteOutput("安装Xray-Core..."); WriteOutput("安装Xray-Core...");
InstallXrayWithCert(); InstallXrayWithCert();

View File

@ -89,7 +89,7 @@ namespace ProxySuper.Core.ViewModels
get => Settings.ShadowSocksPort; get => Settings.ShadowSocksPort;
set set
{ {
Settings.VMESS_KCP_Port = value; Settings.ShadowSocksPort = value;
RaisePropertyChanged("ShadowSocksPort"); RaisePropertyChanged("ShadowSocksPort");
} }
} }
@ -142,6 +142,7 @@ namespace ProxySuper.Core.ViewModels
get => Settings.TrojanPassword; get => Settings.TrojanPassword;
set => Settings.TrojanPassword = value; set => Settings.TrojanPassword = value;
} }
public bool Checked_Trojan_TCP public bool Checked_Trojan_TCP
{ {
get get

View File

@ -301,17 +301,6 @@
Width="200" /> Width="200" />
</StackPanel> </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--> <!--xray prot-->
<StackPanel Margin="30,15,0,0" <StackPanel Margin="30,15,0,0"
Orientation="Horizontal"> Orientation="Horizontal">