v2rayN icon indicating copy to clipboard operation
v2rayN copied to clipboard

[Bug]: 无法设置直连的网址

Open aojiaobaobao01 opened this issue 2 years ago • 1 comments

预期情况

我将网址添加到直连名单里面不生效

实际情况

我访问 https://woiden.id 这个网址的时候提示 Please disable AdBlock to access this site! 可是我系统并没有开启去广告的功能,我的节点也没有去广告的功能,同样的节点,我用手机客户端的shadowrcoket 访问都是正常的 ,我用别的浏览器,清空缓存,也是一样的。 然后我就关掉代理,访问这个网址,电脑也不会提示, Please disable AdBlock to access this site! 。 然后我就想说不要代理,直连访问,这个网址。 我就打开V2RayN - 设置-参数设置-系统代理设置- 填入woiden.id- 点击确定。然后规则不生效。 然后我又打开 设置-路由设置-双击绕过大陆-规则功能-添加规则- outboundTag 选着direct, Domain 里面填上woiden.id,点击确定。还是一样 没用变成直连

复现方法

然后我又测试了 GitHub.com 也添加到 路由规则, 设置-路由设置-双击绕过大陆-规则功能-添加规则- outboundTag 选着direct, Domain 里面填上 GitHub.com,点击确定。还是一样 .都是显示代理 2022/09/30 12:28:59 127.0.0.1:9244 accepted //alive.github.com:443 [http -> proxy]

日志信息

2022-09-30 11:07:02,908 [1] INFO Log1 - v2rayN start up | v2rayN - V5.36 - 2022/09/20 | C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\v2rayN.exe 2022-09-30 11:07:03,141 [1] DEBUG Log2 - 未能找到文件“C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\guiNConfig.json”。 2022-09-30 11:07:03,143 [1] DEBUG Log2 - System.IO.FileNotFoundException: 未能找到文件“C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\guiNConfig.json”。 文件名:“C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\guiNConfig.json” 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 在 System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) 在 System.IO.StreamReader..ctor(String path) 在 v2rayN.Utils.LoadResource(String res) 2022-09-30 11:07:21,860 [1] INFO Log1 - MyAppExit Begin 2022-09-30 11:07:21,969 [1] INFO Log1 - MyAppExit End 2022-09-30 11:07:37,213 [1] INFO Log1 - v2rayN start up | v2rayN - V5.36 - 2022/09/20 | C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\v2rayN.exe 2022-09-30 11:08:37,641 [4] INFO Log1 - UpdateTaskRun 2022-09-30 11:10:35,480 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:10:35,482 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:11:21,677 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:11:21,678 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:11:55,590 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:11:55,590 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:13:50,092 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:13:50,092 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:14:05,139 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:14:05,139 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:14:05,485 [18] DEBUG Log2 - 2022/09/30 11:14:05 Using default config: C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\config.json

2022-09-30 11:14:05,485 [18] DEBUG Log2 - System.Exception: 2022/09/30 11:14:05 Using default config: C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\config.json

在 v2rayN.Handler.V2rayHandler.V2rayStart() 2022-09-30 11:14:08,266 [14] DEBUG Log2 - 2022-09-30 11:14:08,267 [14] DEBUG Log2 - System.Exception 在 v2rayN.Handler.V2rayHandler.V2rayStartNew(String configStr) 2022-09-30 11:14:12,761 [17] DEBUG Log2 - 2022-09-30 11:14:12,761 [17] DEBUG Log2 - System.Exception 在 v2rayN.Handler.V2rayHandler.V2rayStartNew(String configStr) 2022-09-30 11:14:24,383 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:14:24,384 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:14:24,402 [9] DEBUG Log2 - 进程已退出,因此无法获得所请求的信息。 2022-09-30 11:14:24,403 [9] DEBUG Log2 - System.InvalidOperationException: 进程已退出,因此无法获得所请求的信息。 在 System.Diagnostics.Process.EnsureState(State state) 在 System.Diagnostics.Process.get_MainWindowHandle() 在 System.Diagnostics.Process.CloseMainWindow() 在 v2rayN.Handler.V2rayHandler.KillProcess(Process p) 2022-09-30 11:15:52,851 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:15:52,852 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:16:07,865 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:16:07,866 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:17:01,153 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:17:01,154 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:17:01,501 [8] DEBUG Log2 - 2022/09/30 11:17:01 Using default config: C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\config.json

2022-09-30 11:17:01,501 [8] DEBUG Log2 - System.Exception: 2022/09/30 11:17:01 Using default config: C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\config.json

在 v2rayN.Handler.V2rayHandler.V2rayStart() 2022-09-30 11:17:04,005 [8] DEBUG Log2 - 2022-09-30 11:17:04,005 [8] DEBUG Log2 - System.Exception 在 v2rayN.Handler.V2rayHandler.V2rayStartNew(String configStr) 2022-09-30 11:17:16,665 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:17:16,666 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:17:16,684 [3] DEBUG Log2 - 进程已退出,因此无法获得所请求的信息。 2022-09-30 11:17:16,685 [3] DEBUG Log2 - System.InvalidOperationException: 进程已退出,因此无法获得所请求的信息。 在 System.Diagnostics.Process.EnsureState(State state) 在 System.Diagnostics.Process.get_MainWindowHandle() 在 System.Diagnostics.Process.CloseMainWindow() 在 v2rayN.Handler.V2rayHandler.KillProcess(Process p) 2022-09-30 11:17:40,023 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:17:40,023 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:19:08,567 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:19:08,567 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:20:17,481 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:20:17,481 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:20:42,335 [1] DEBUG Log2 - 输入字符串的格式不正确。 2022-09-30 11:20:42,335 [1] DEBUG Log2 - System.FormatException: 输入字符串的格式不正确。 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) 在 v2rayN.Utils.ToInt(Object obj) 2022-09-30 11:41:14,740 [1] DEBUG Log2 - Error reading JObject from JsonReader. Path '', line 0, position 0. 2022-09-30 11:41:14,740 [1] DEBUG Log2 - Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0. 在 Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) 在 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) 在 v2rayN.Utils.ParseJson(String strJson) 2022-09-30 12:04:48,017 [1] INFO Log1 - MyAppExit Begin 2022-09-30 12:04:48,226 [1] INFO Log1 - MyAppExit End 2022-09-30 12:06:38,303 [1] INFO Log1 - v2rayN start up | v2rayN - V5.36 - 2022/09/20 | C:\Users\a\Desktop\v2rayN-Core\v2rayN-Core\v2rayN.exe 2022-09-30 12:07:38,824 [4] INFO Log1 - UpdateTaskRun 2022-09-30 12:15:45,652 [1] DEBUG Log2 - Error reading JObject from JsonReader. Path '', line 0, position 0. 2022-09-30 12:15:45,654 [1] DEBUG Log2 - Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0. 在 Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) 在 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) 在 v2rayN.Utils.ParseJson(String strJson) 2022-09-30 12:18:20,772 [1] DEBUG Log2 - Error reading JObject from JsonReader. Path '', line 0, position 0. 2022-09-30 12:18:20,773 [1] DEBUG Log2 - Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0. 在 Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) 在 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) 在 v2rayN.Utils.ParseJson(String strJson) 2022-09-30 12:18:22,002 [1] DEBUG Log2 - Error setting options: 87 参数错误。

2022-09-30 12:18:22,003 [1] DEBUG Log2 - System.Exception: Error setting options: 87 参数错误。

在 v2rayN.Handler.SysProxyHandle.ExecSysproxy(String arguments) 在 v2rayN.Handler.SysProxyHandle.UpdateSysProxy(Config config, Boolean forceDisable) 2022-09-30 12:20:29,822 [1] DEBUG Log2 - Error setting options: 87 参数错误。

2022-09-30 12:20:29,823 [1] DEBUG Log2 - System.Exception: Error setting options: 87 参数错误。

在 v2rayN.Handler.SysProxyHandle.ExecSysproxy(String arguments) 在 v2rayN.Handler.SysProxyHandle.UpdateSysProxy(Config config, Boolean forceDisable) 2022-09-30 12:21:47,583 [1] DEBUG Log2 - Error setting options: 87 参数错误。

2022-09-30 12:21:47,584 [1] DEBUG Log2 - System.Exception: Error setting options: 87 参数错误。

在 v2rayN.Handler.SysProxyHandle.ExecSysproxy(String arguments) 在 v2rayN.Handler.SysProxyHandle.UpdateSysProxy(Config config, Boolean forceDisable) 2022-09-30 12:22:37,296 [1] DEBUG Log2 - Error setting options: 87 参数错误。

2022-09-30 12:22:37,297 [1] DEBUG Log2 - System.Exception: Error setting options: 87 参数错误。

在 v2rayN.Handler.SysProxyHandle.ExecSysproxy(String arguments) 在 v2rayN.Handler.SysProxyHandle.UpdateSysProxy(Config config, Boolean forceDisable) 2022-09-30 12:23:43,794 [1] DEBUG Log2 - Error setting options: 87 参数错误。

2022-09-30 12:23:43,794 [1] DEBUG Log2 - System.Exception: Error setting options: 87 参数错误。

在 v2rayN.Handler.SysProxyHandle.ExecSysproxy(String arguments) 在 v2rayN.Handler.SysProxyHandle.UpdateSysProxy(Config config, Boolean forceDisable) 2022-09-30 12:24:31,332 [1] DEBUG Log2 - Error reading JObject from JsonReader. Path '', line 0, position 0. 2022-09-30 12:24:31,332 [1] DEBUG Log2 - Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0. 在 Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) 在 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) 在 v2rayN.Utils.ParseJson(String strJson)

额外信息

No response

我确认已更新至最新版本

  • [x] 是

我确认已查询历史issues

  • [x] 是

aojiaobaobao01 avatar Sep 30 '22 04:09 aojiaobaobao01

5.34-5.36遇到相同的情况,有些本来能direct访问的最近都莫名其妙被加入代理了,且手动加入direct不生效,导致一些网站无法正常访问,必须关闭v2客户端。

gbsix avatar Sep 30 '22 06:09 gbsix

相同的问题,目前版本是5.34,想给一些期刊的网站加direct规则,发现根本没用,但以前一直好用的

onehafs avatar Oct 18 '22 03:10 onehafs

example:退回到5.29版本可用direct

onehafs avatar Oct 18 '22 04:10 onehafs

我也有这个问题,目前用的版本是5.36

hsiayuchih avatar Nov 21 '22 03:11 hsiayuchih