Compare commits

...

3 Commits
6.40 ... 6.41

Author SHA1 Message Date
2dust
7823a217b4 Update 6.41 2024-03-31 08:09:13 +08:00
2dust
2004df8337 Rename Model to Models 2024-03-31 08:08:06 +08:00
2dust
13bc2d0340 Bug fix
https://github.com/2dust/v2rayN/issues/4902
2024-03-31 07:54:22 +08:00
77 changed files with 81 additions and 81 deletions

View File

@@ -2,7 +2,7 @@
using System.Windows;
using System.Windows.Threading;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN
{

View File

@@ -1029,14 +1029,14 @@ namespace v2rayN
if (run)
{
string exePath = $"\"{GetExePath()}\"";
string exePath = GetExePath();
if (IsAdministrator())
{
AutoStart(autoRunName, exePath, "");
}
else
{
RegWriteValue(AutoRunRegPath, autoRunName, exePath);
RegWriteValue(AutoRunRegPath, autoRunName, exePath.AppendQuotes());
}
}
}
@@ -1136,7 +1136,7 @@ namespace v2rayN
task.Settings.ExecutionTimeLimit = TimeSpan.Zero;
task.Triggers.Add(new LogonTrigger { UserId = logonUser, Delay = TimeSpan.FromSeconds(10) });
task.Principal.RunLevel = TaskRunLevel.Highest;
task.Actions.Add(new ExecAction(deamonFileName, null, Path.GetDirectoryName(deamonFileName)));
task.Actions.Add(new ExecAction(deamonFileName.AppendQuotes(), null, Path.GetDirectoryName(deamonFileName)));
taskService.RootFolder.RegisterTaskDefinition(TaskName, task);
}

View File

@@ -1,4 +1,4 @@
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN
{

View File

@@ -1,7 +1,7 @@
using System.Data;
using System.IO;
using System.Text.RegularExpressions;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{

View File

@@ -1,5 +1,5 @@
using System.IO;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -1,6 +1,6 @@
using System.Net;
using System.Net.NetworkInformation;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -1,6 +1,6 @@
using System.Net;
using System.Net.NetworkInformation;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -2,7 +2,7 @@
using System.IO;
using System.Reactive.Linq;
using System.Text;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -4,7 +4,7 @@ using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Net.Sockets;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -4,7 +4,7 @@ using System.Text;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interop;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -1,5 +1,5 @@
using System.Runtime.Intrinsics.X86;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{

View File

@@ -3,7 +3,7 @@ using Splat;
using System.Drawing;
using System.IO;
using System.Windows.Media.Imaging;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -1,6 +1,6 @@
using System.Collections.Concurrent;
using System.Reactive.Linq;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{

View File

@@ -1,6 +1,6 @@
using System.Collections.Specialized;
using System.Text.RegularExpressions;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -2,7 +2,7 @@
using System.Diagnostics;
using System.Net;
using System.Net.Sockets;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -1,4 +1,4 @@
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{

View File

@@ -1,6 +1,6 @@
using System.Net.WebSockets;
using System.Text;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{

View File

@@ -1,19 +1,19 @@
using Grpc.Core;
using Grpc.Net.Client;
using ProtosLib.Statistics;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{
internal class StatisticsV2ray
{
private Model.Config _config;
private Models.Config _config;
private GrpcChannel? _channel;
private StatsService.StatsServiceClient? _client;
private bool _exitFlag;
private Action<ServerSpeedItem> _updateFunc;
public StatisticsV2ray(Model.Config config, Action<ServerSpeedItem> update)
public StatisticsV2ray(Models.Config config, Action<ServerSpeedItem> update)
{
_config = config;
_updateFunc = update;

View File

@@ -1,5 +1,5 @@
using PacLib;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{

View File

@@ -6,7 +6,7 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public class ComboItem
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
/// <summary>
/// 本软件配置文件实体类

View File

@@ -1,6 +1,6 @@
using System.Windows.Input;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class CoreBasicItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ConfigOld

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class CoreInfo

View File

@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class DNSItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EConfigType
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum ECoreType
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EGlobalHotkey
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EInboundProtocol
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EMove
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EServerColName
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum ESpeedActionType
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum ESysProxyType
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum ETransport
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EViewAction
{

View File

@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
namespace v2rayN.Model
namespace v2rayN.Models
{
public class GitHubReleaseAsset
{

View File

@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ProfileExItem

View File

@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ProfileItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ProfileItemModel : ProfileItem

View File

@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class RoutingItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class RoutingItemModel : RoutingItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class RulesItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class RulesItemModel : RulesItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
internal class ServerSpeedItem : ServerStatItem

View File

@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ServerStatItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
internal class ServerTestItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public class SingboxConfig
{

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public class SsSIP008
{

View File

@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class SubItem

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
internal class SysProxyConfig
{

View File

@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
namespace v2rayN.Model
namespace v2rayN.Models
{
/// <summary>
/// v2ray配置文件实体类 例子SampleConfig.txt

View File

@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
/// <summary>
/// Tcp伪装http的Request只要Host

View File

@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
namespace v2rayN.Model
namespace v2rayN.Models
{
/// <summary>
/// https://github.com/2dust/v2rayN/wiki/

View File

@@ -6,7 +6,7 @@ using System.IO;
using System.Reactive;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.ViewModels

View File

@@ -4,7 +4,7 @@ using Splat;
using System.Reactive;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.ViewModels

View File

@@ -4,7 +4,7 @@ using Splat;
using System.Reactive;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.ViewModels

View File

@@ -15,7 +15,7 @@ using System.Text;
using System.Windows;
using System.Windows.Media;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
using v2rayN.Views;

View File

@@ -4,7 +4,7 @@ using Splat;
using System.Reactive;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.ViewModels

View File

@@ -4,7 +4,7 @@ using Splat;
using System.Reactive;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.ViewModels

View File

@@ -5,7 +5,7 @@ using Splat;
using System.Reactive;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
using v2rayN.Views;
using Application = System.Windows.Application;

View File

@@ -5,7 +5,7 @@ using Splat;
using System.Reactive;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
using v2rayN.Views;

View File

@@ -4,7 +4,7 @@ using Splat;
using System.Reactive;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.ViewModels

View File

@@ -7,7 +7,7 @@ using Splat;
using System.Reactive;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
using v2rayN.Views;

View File

@@ -1,7 +1,7 @@
using ReactiveUI;
using System.Reactive.Disposables;
using System.Windows;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.ViewModels;
namespace v2rayN.Views

View File

@@ -3,7 +3,7 @@ using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Controls;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
using v2rayN.ViewModels;

View File

@@ -2,7 +2,7 @@
using System.Reactive.Disposables;
using System.Windows;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.ViewModels;
namespace v2rayN.Views

View File

@@ -3,7 +3,7 @@ using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Views

View File

@@ -11,7 +11,7 @@ using System.Windows.Interop;
using System.Windows.Media;
using v2rayN.Base;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
using v2rayN.ViewModels;
using Point = System.Windows.Point;

View File

@@ -3,7 +3,7 @@ using System.Reactive.Linq;
using System.Text.RegularExpressions;
using System.Windows.Threading;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Views
{

View File

@@ -5,7 +5,7 @@ using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Media;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.ViewModels;
namespace v2rayN.Views

View File

@@ -1,7 +1,7 @@
using ReactiveUI;
using System.Reactive.Disposables;
using System.Windows;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.ViewModels;
namespace v2rayN.Views

View File

@@ -2,7 +2,7 @@
using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Input;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.ViewModels;
namespace v2rayN.Views

View File

@@ -2,7 +2,7 @@
using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Input;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.ViewModels;
namespace v2rayN.Views

View File

@@ -1,7 +1,7 @@
using ReactiveUI;
using System.Reactive.Disposables;
using System.Windows;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.ViewModels;
namespace v2rayN.Views

View File

@@ -3,7 +3,7 @@ using System.ComponentModel;
using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Input;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.ViewModels;
namespace v2rayN.Views

View File

@@ -10,7 +10,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>v2rayN.ico</ApplicationIcon>
<Copyright>Copyright © 2017-2024 (GPLv3)</Copyright>
<FileVersion>6.40</FileVersion>
<FileVersion>6.41</FileVersion>
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
</PropertyGroup>