mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-22 05:06:08 +03:00
commit
072b3286ef
@ -198,7 +198,7 @@ namespace ProxySuper.Core.Services
|
||||
Progress.Desc = ($"本机IP({IPv6})");
|
||||
if (IPv6 != domainIP)
|
||||
{
|
||||
throw new Exception("域名解析地址与服务器IP不匹配!");
|
||||
//throw new Exception("域名解析地址与服务器IP不匹配!");
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -207,7 +207,7 @@ namespace ProxySuper.Core.Services
|
||||
Progress.Desc = ($"域名IP({domainIP})");
|
||||
if (IPv4 != domainIP)
|
||||
{
|
||||
throw new Exception("域名解析地址与服务器IP不匹配!");
|
||||
//throw new Exception("域名解析地址与服务器IP不匹配!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -110,8 +110,9 @@ namespace ProxySuper.Core.Services
|
||||
|
||||
public static string BuildV2rayConfig(V2raySettings parameters)
|
||||
{
|
||||
var uuidList = parameters.MulitUUID;
|
||||
uuidList.Insert(0, parameters.UUID);
|
||||
var uuidList = new List<string>();
|
||||
uuidList.Add(parameters.UUID);
|
||||
uuidList.AddRange(parameters.MulitUUID);
|
||||
|
||||
var xrayConfig = LoadV2rayConfig();
|
||||
|
||||
|
@ -113,8 +113,9 @@ namespace ProxySuper.Core.Services
|
||||
|
||||
public static string BuildXrayConfig(XraySettings parameters)
|
||||
{
|
||||
var uuidList = parameters.MulitUUID;
|
||||
uuidList.Insert(0, parameters.UUID);
|
||||
var uuidList = new List<string>();
|
||||
uuidList.Add(parameters.UUID);
|
||||
uuidList.AddRange(parameters.MulitUUID);
|
||||
|
||||
var xrayConfig = LoadXrayConfig();
|
||||
|
||||
|
@ -139,7 +139,8 @@ namespace ProxySuper.Core.ViewModels
|
||||
set
|
||||
{
|
||||
var input = value.Replace(',', ',');
|
||||
var arr = input.Split(',').ToList();
|
||||
var arr = input.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
arr.RemoveAll(x => x == this.UUID);
|
||||
Settings.MulitUUID = arr;
|
||||
RaisePropertyChanged("MultiUUID");
|
||||
}
|
||||
|
@ -134,7 +134,8 @@ namespace ProxySuper.Core.ViewModels
|
||||
set
|
||||
{
|
||||
var input = value.Replace(',', ',');
|
||||
var arr = input.Split(',').ToList();
|
||||
var arr = input.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
arr.RemoveAll(x => x == this.UUID);
|
||||
Settings.MulitUUID = arr;
|
||||
RaisePropertyChanged("MultiUUID");
|
||||
}
|
||||
|
@ -8,10 +8,10 @@
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<!--Languages-->
|
||||
<!--Language-->
|
||||
<ResourceDictionary Source="/Resources/Languages/zh_cn.xaml" />
|
||||
|
||||
<!--styles-->
|
||||
<!--style-->
|
||||
<ResourceDictionary>
|
||||
<Style TargetType="{x:Type TextBox}">
|
||||
<Setter Property="Padding" Value="5,2" />
|
||||
@ -24,7 +24,7 @@
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
|
||||
<!--components styles-->
|
||||
<!--component style-->
|
||||
<ResourceDictionary Source="/Resources/Styles/DataGridStyle.xaml" />
|
||||
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
Loading…
Reference in New Issue
Block a user