mirror of https://github.com/2dust/v2rayN
Code clean
parent
c669e72189
commit
df95cc6af7
|
@ -411,11 +411,11 @@ public class Utils
|
||||||
// Link-local address fe80::/10
|
// Link-local address fe80::/10
|
||||||
if (ipBytes[0] == 0xfe && (ipBytes[1] & 0xc0) == 0x80)
|
if (ipBytes[0] == 0xfe && (ipBytes[1] & 0xc0) == 0x80)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Unique local address fc00::/7 (typically fd00::/8)
|
// Unique local address fc00::/7 (typically fd00::/8)
|
||||||
if ((ipBytes[0] & 0xfe) == 0xfc)
|
if ((ipBytes[0] & 0xfe) == 0xfc)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Private portion in IPv4-mapped addresses ::ffff:0:0/96
|
// Private portion in IPv4-mapped addresses ::ffff:0:0/96
|
||||||
if (address.IsIPv4MappedToIPv6)
|
if (address.IsIPv4MappedToIPv6)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1997,7 +1997,7 @@ public class ConfigHandler
|
||||||
|
|
||||||
if (!blImportAdvancedRules && items.Count > 0)
|
if (!blImportAdvancedRules && items.Count > 0)
|
||||||
{
|
{
|
||||||
//migrate
|
//migrate
|
||||||
//TODO Temporary code to be removed later
|
//TODO Temporary code to be removed later
|
||||||
if (config.RoutingBasicItem.RoutingIndexId.IsNotEmpty())
|
if (config.RoutingBasicItem.RoutingIndexId.IsNotEmpty())
|
||||||
{
|
{
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class BaseFmt
|
||||||
if (item.Mldsa65Verify.IsNotEmpty())
|
if (item.Mldsa65Verify.IsNotEmpty())
|
||||||
{
|
{
|
||||||
dicQuery.Add("pqv", Utils.UrlEncode(item.Mldsa65Verify));
|
dicQuery.Add("pqv", Utils.UrlEncode(item.Mldsa65Verify));
|
||||||
}
|
}
|
||||||
if (item.AllowInsecure.Equals("true"))
|
if (item.AllowInsecure.Equals("true"))
|
||||||
{
|
{
|
||||||
dicQuery.Add("allowInsecure", "1");
|
dicQuery.Add("allowInsecure", "1");
|
||||||
|
|
|
@ -12,7 +12,7 @@ public class CoreConfigClashService
|
||||||
{
|
{
|
||||||
_config = config;
|
_config = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<RetResult> GenerateClientCustomConfig(ProfileItem node, string? fileName)
|
public async Task<RetResult> GenerateClientCustomConfig(ProfileItem node, string? fileName)
|
||||||
{
|
{
|
||||||
var ret = new RetResult();
|
var ret = new RetResult();
|
||||||
|
|
|
@ -234,7 +234,7 @@ public class ClashProxiesViewModel : MyReactiveObject
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SelectedGroup = _proxyGroups.First();
|
SelectedGroup = _proxyGroups.First();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -73,6 +73,7 @@
|
||||||
<ScrollViewer x:Name="msgScrollViewer" VerticalScrollBarVisibility="Auto">
|
<ScrollViewer x:Name="msgScrollViewer" VerticalScrollBarVisibility="Auto">
|
||||||
<SelectableTextBlock
|
<SelectableTextBlock
|
||||||
Name="txtMsg"
|
Name="txtMsg"
|
||||||
|
Margin="{StaticResource Margin8}"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Classes="TextArea"
|
Classes="TextArea"
|
||||||
TextAlignment="Left"
|
TextAlignment="Left"
|
||||||
|
|
|
@ -25,7 +25,7 @@ public partial class MsgView
|
||||||
menuMsgViewCopy.Click += menuMsgViewCopy_Click;
|
menuMsgViewCopy.Click += menuMsgViewCopy_Click;
|
||||||
menuMsgViewCopyAll.Click += menuMsgViewCopyAll_Click;
|
menuMsgViewCopyAll.Click += menuMsgViewCopyAll_Click;
|
||||||
menuMsgViewClear.Click += menuMsgViewClear_Click;
|
menuMsgViewClear.Click += menuMsgViewClear_Click;
|
||||||
|
|
||||||
cmbMsgFilter.ItemsSource = Global.PresetMsgFilters;
|
cmbMsgFilter.ItemsSource = Global.PresetMsgFilters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue