自定义UA

This commit is contained in:
mojpangr26
2023-02-01 17:07:36 +08:00
parent 146f597a0b
commit fe1c043b8e
12 changed files with 169 additions and 55 deletions
@@ -29,6 +29,8 @@ namespace v2rayN.ViewModels
[Reactive] public string loglevel { get; set; }
[Reactive] public bool defAllowInsecure { get; set; }
[Reactive] public string defFingerprint { get; set; }
[Reactive] public string defUserAgent { get; set; }
[Reactive] public string customizeUserAgent { get; set; }
#endregion
#region Core DNS
@@ -112,6 +114,8 @@ namespace v2rayN.ViewModels
loglevel = _config.loglevel;
defAllowInsecure = _config.defAllowInsecure;
defFingerprint = _config.defFingerprint;
defUserAgent = _config.defUserAgent;
customizeUserAgent = _config.customizeUserAgent;
#endregion
#region Core DNS
@@ -272,6 +276,8 @@ namespace v2rayN.ViewModels
_config.muxEnabled = muxEnabled;
_config.defAllowInsecure = defAllowInsecure;
_config.defFingerprint = defFingerprint;
_config.defUserAgent = defUserAgent;
_config.customizeUserAgent = customizeUserAgent;
//DNS