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