Compare commits

...
3 Commits
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
+1 -1
View File
@@ -2,7 +2,7 @@
using System.Windows;
using System.Windows.Threading;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN
{
+3 -3
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);
}
+1 -1
View File
@@ -1,4 +1,4 @@
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN
{
+1 -1
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
{
+1 -1
View File
@@ -1,5 +1,5 @@
using System.IO;
using v2rayN.Model;
using v2rayN.Models;
using v2rayN.Resx;
namespace v2rayN.Handler
+1 -1
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
+1 -1
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
+1 -1
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
+1 -1
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
+1 -1
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
+1 -1
View File
@@ -1,5 +1,5 @@
using System.Runtime.Intrinsics.X86;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{
+1 -1
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
+1 -1
View File
@@ -1,6 +1,6 @@
using System.Collections.Concurrent;
using System.Reactive.Linq;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{
+1 -1
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
+1 -1
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
+1 -1
View File
@@ -1,4 +1,4 @@
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{
+1 -1
View File
@@ -1,6 +1,6 @@
using System.Net.WebSockets;
using System.Text;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{
+3 -3
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;
+1 -1
View File
@@ -1,5 +1,5 @@
using PacLib;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN.Handler
{
+1 -1
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
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public class ComboItem
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
/// <summary>
/// 本软件配置文件实体类
@@ -1,6 +1,6 @@
using System.Windows.Input;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class CoreBasicItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ConfigOld
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class CoreInfo
@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class DNSItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EConfigType
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum ECoreType
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EGlobalHotkey
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EInboundProtocol
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EMove
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EServerColName
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum ESpeedActionType
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum ESysProxyType
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum ETransport
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public enum EViewAction
{
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
namespace v2rayN.Model
namespace v2rayN.Models
{
public class GitHubReleaseAsset
{
@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ProfileExItem
@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ProfileItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ProfileItemModel : ProfileItem
@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class RoutingItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class RoutingItemModel : RoutingItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class RulesItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class RulesItemModel : RulesItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
internal class ServerSpeedItem : ServerStatItem
@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class ServerStatItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
internal class ServerTestItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public class SingboxConfig
{
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
public class SsSIP008
{
@@ -1,6 +1,6 @@
using SQLite;
namespace v2rayN.Model
namespace v2rayN.Models
{
[Serializable]
public class SubItem
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
internal class SysProxyConfig
{
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
namespace v2rayN.Model
namespace v2rayN.Models
{
/// <summary>
/// v2ray配置文件实体类 例子SampleConfig.txt
@@ -1,4 +1,4 @@
namespace v2rayN.Model
namespace v2rayN.Models
{
/// <summary>
/// Tcp伪装http的Request,只要Host
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
namespace v2rayN.Model
namespace v2rayN.Models
{
/// <summary>
/// https://github.com/2dust/v2rayN/wiki/
@@ -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
@@ -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
@@ -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
@@ -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;
@@ -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
@@ -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
@@ -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;
@@ -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;
+1 -1
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
@@ -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;
+1 -1
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
+1 -1
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;
+1 -1
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
@@ -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
+1 -1
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;
+1 -1
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
{
@@ -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
@@ -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
@@ -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
@@ -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
+1 -1
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
+1 -1
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
+1 -1
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>