mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-21 20:56:08 +03:00
update v4.1.5
This commit is contained in:
parent
d815152d2d
commit
4d9890c797
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user