Compare commits

..

17 commits

Author SHA1 Message Date
DHR60
8438f99b3b Refactor 2025-09-13 11:10:24 +08:00
DHR60
ccee805045 Avoid duplicate tags 2025-09-13 11:10:24 +08:00
DHR60
c53362f000 Add group in traffic splitting support 2025-09-13 11:10:24 +08:00
DHR60
952a347b9c Add PolicyGroup include other Group support 2025-09-13 11:10:24 +08:00
DHR60
71d9d7227b Add fallback support 2025-09-13 11:10:24 +08:00
DHR60
17e3a16dec Fix 2025-09-13 11:10:24 +08:00
DHR60
6e3b2afcc7 Add Proxy Chain support 2025-09-13 11:10:24 +08:00
DHR60
d8cf86e695 Adjust UI 2025-09-13 11:10:24 +08:00
DHR60
ee3575fa95 Add generate policy group 2025-09-13 11:10:24 +08:00
DHR60
cc95734f11 Add Policy Group support 2025-09-13 11:10:24 +08:00
DHR60
c786e30f89 Rename 2025-09-13 11:10:24 +08:00
DHR60
0bd4a3d48a Exclude specific profile types from selection 2025-09-13 11:10:23 +08:00
DHR60
879ac65caf Fix right click not working 2025-09-13 11:10:23 +08:00
DHR60
347b63def8 avalonia 2025-09-13 11:10:23 +08:00
DHR60
72d377ad2e VM and wpf 2025-09-13 11:10:23 +08:00
DHR60
85842dfb8c Multi Profile 2025-09-13 11:10:23 +08:00
DHR60
70fe733ea3 Add global fakeip and fakeip filter 2025-09-13 11:10:23 +08:00
38 changed files with 49 additions and 23 deletions

View file

@ -72,6 +72,11 @@ public partial class CoreConfigSingboxService
}
var hostsDomains = new List<string>();
var systemHostsMap = Utils.GetSystemHosts();
foreach (var kvp in systemHostsMap)
{
hostsDomains.Add(kvp.Key);
}
var dnsItem = await AppManager.Instance.GetDNSItem(ECoreType.sing_box);
if (dnsItem == null || dnsItem.Enabled == false)
{
@ -84,23 +89,12 @@ public partial class CoreConfigSingboxService
hostsDomains.Add(kvp.Key);
}
}
if (simpleDNSItem.UseSystemHosts == true)
{
var systemHostsMap = Utils.GetSystemHosts();
foreach (var kvp in systemHostsMap)
{
hostsDomains.Add(kvp.Key);
}
}
}
if (hostsDomains.Count > 0)
singboxConfig.route.rules.Add(new()
{
singboxConfig.route.rules.Add(new()
{
action = "resolve",
domain = hostsDomains,
});
}
action = "resolve",
domain = hostsDomains,
});
singboxConfig.route.rules.Add(new()
{

View file

@ -1,3 +1,4 @@
using System.Data;
using System.Reactive;
using DynamicData.Binding;
using ReactiveUI;

View file

@ -1,6 +1,7 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
using ServiceLib.Manager;
using Splat;
using v2rayN.Desktop.Common;
using v2rayN.Desktop.Views;

View file

@ -1,6 +1,7 @@
using Avalonia;
using Avalonia.Interactivity;
using Avalonia.ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Desktop.Base;

View file

@ -1,9 +1,8 @@
global using ServiceLib;
global using ServiceLib;
global using ServiceLib.Base;
global using ServiceLib.Common;
global using ServiceLib.Enums;
global using ServiceLib.Handler;
global using ServiceLib.Manager;
global using ServiceLib.Models;
global using ServiceLib.Resx;
global using ServiceLib.ViewModels;
global using ServiceLib.ViewModels;

View file

@ -1,5 +1,6 @@
using Avalonia;
using Avalonia.ReactiveUI;
using ServiceLib.Manager;
using v2rayN.Desktop.Common;
namespace v2rayN.Desktop;

View file

@ -8,6 +8,7 @@ using Avalonia.Styling;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using Semi.Avalonia;
using ServiceLib.Manager;
namespace v2rayN.Desktop.ViewModels;

View file

@ -2,6 +2,7 @@ using System.Reactive.Disposables;
using Avalonia.Controls;
using Avalonia.Interactivity;
using ReactiveUI;
using ServiceLib.Manager;
using v2rayN.Desktop.Base;
namespace v2rayN.Desktop.Views;

View file

@ -2,6 +2,7 @@ using System.Reactive.Disposables;
using Avalonia.Controls;
using Avalonia.Interactivity;
using ReactiveUI;
using ServiceLib.Manager;
using v2rayN.Desktop.Base;
namespace v2rayN.Desktop.Views;

View file

@ -1,6 +1,7 @@
using System.Reactive.Disposables;
using Avalonia.Interactivity;
using ReactiveUI;
using ServiceLib.Manager;
using v2rayN.Desktop.Base;
namespace v2rayN.Desktop.Views;

View file

@ -10,6 +10,7 @@ using Avalonia.Threading;
using DialogHostAvalonia;
using MsBox.Avalonia.Enums;
using ReactiveUI;
using ServiceLib.Manager;
using Splat;
using v2rayN.Desktop.Base;
using v2rayN.Desktop.Common;

View file

@ -2,6 +2,7 @@ using System.Reactive.Disposables;
using Avalonia.Controls;
using Avalonia.Interactivity;
using ReactiveUI;
using ServiceLib.Manager;
using v2rayN.Desktop.Base;
namespace v2rayN.Desktop.Views;

View file

@ -6,6 +6,7 @@ using Avalonia.Interactivity;
using Avalonia.ReactiveUI;
using Avalonia.VisualTree;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Desktop.Views;

View file

@ -8,6 +8,7 @@ using Avalonia.Threading;
using DialogHostAvalonia;
using MsBox.Avalonia.Enums;
using ReactiveUI;
using ServiceLib.Manager;
using Splat;
using v2rayN.Desktop.Common;

View file

@ -6,6 +6,7 @@ using Avalonia.ReactiveUI;
using Avalonia.Threading;
using DialogHostAvalonia;
using ReactiveUI;
using ServiceLib.Manager;
using Splat;
using v2rayN.Desktop.Common;

View file

@ -2,6 +2,7 @@ using Avalonia.Controls;
using Avalonia.Threading;
using CliWrap.Buffered;
using DialogHostAvalonia;
using ServiceLib.Manager;
namespace v2rayN.Desktop.Views;

View file

@ -1,6 +1,7 @@
using System.Diagnostics;
using System.Windows;
using System.Windows.Threading;
using ServiceLib.Manager;
namespace v2rayN;

View file

@ -1,5 +1,6 @@
using System.Windows;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Base;

View file

@ -1,4 +1,5 @@
using System.Windows.Media;
using ServiceLib.Manager;
namespace v2rayN.Converters;

View file

@ -1,9 +1,8 @@
global using ServiceLib;
global using ServiceLib;
global using ServiceLib.Base;
global using ServiceLib.Common;
global using ServiceLib.Enums;
global using ServiceLib.Handler;
global using ServiceLib.Manager;
global using ServiceLib.Models;
global using ServiceLib.Resx;
global using ServiceLib.ViewModels;
global using ServiceLib.ViewModels;

View file

@ -4,6 +4,7 @@ using System.Text;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interop;
using ServiceLib.Manager;
namespace v2rayN.Manager;

View file

@ -9,6 +9,7 @@ using MaterialDesignColors.ColorManipulation;
using MaterialDesignThemes.Wpf;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using ServiceLib.Manager;
namespace v2rayN.ViewModels;

View file

@ -1,8 +1,8 @@
using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Input;
using DynamicData;
using ReactiveUI;
using System.Reactive.Disposables;
using DynamicData;
namespace v2rayN.Views;

View file

@ -1,6 +1,7 @@
using System.Reactive.Disposables;
using System.Windows;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;

View file

@ -2,6 +2,7 @@ using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Controls;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;

View file

@ -1,6 +1,7 @@
using System.Reactive.Disposables;
using System.Windows;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;

View file

@ -1,6 +1,7 @@
using System.Reactive.Disposables;
using System.Windows;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;

View file

@ -4,6 +4,7 @@ using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using ReactiveUI;
using ServiceLib.Manager;
using v2rayN.Manager;
namespace v2rayN.Views;

View file

@ -9,6 +9,7 @@ using System.Windows.Media;
using System.Windows.Threading;
using MaterialDesignThemes.Wpf;
using ReactiveUI;
using ServiceLib.Manager;
using Splat;
using v2rayN.Manager;

View file

@ -4,6 +4,7 @@ using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Media;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;

View file

@ -4,6 +4,7 @@ using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using ReactiveUI;
using ServiceLib.Manager;
using v2rayN.Base;
namespace v2rayN.Views;

View file

@ -8,6 +8,7 @@ using System.Windows.Media;
using System.Windows.Threading;
using MaterialDesignThemes.Wpf;
using ReactiveUI;
using ServiceLib.Manager;
using Splat;
using v2rayN.Base;
using Point = System.Windows.Point;

View file

@ -1,6 +1,7 @@
using System.Reactive.Disposables;
using System.Windows;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;

View file

@ -2,6 +2,7 @@ using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Input;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;

View file

@ -2,6 +2,7 @@ using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Input;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;

View file

@ -3,6 +3,7 @@ using System.Windows;
using System.Windows.Input;
using System.Windows.Threading;
using ReactiveUI;
using ServiceLib.Manager;
using Splat;
using v2rayN.Manager;

View file

@ -1,6 +1,7 @@
using System.Reactive.Disposables;
using System.Windows;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;

View file

@ -4,6 +4,7 @@ using System.Windows;
using System.Windows.Input;
using MaterialDesignThemes.Wpf;
using ReactiveUI;
using ServiceLib.Manager;
namespace v2rayN.Views;