SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
15.38k stars 1.89k forks source link

unsupported protocol scheme "ws" #1837

Closed hackenfu closed 3 weeks ago

hackenfu commented 3 weeks ago

操作系统

iOS

系统版本

17.5.1

安装类型

sing-box for iOS 图形客户端程序

如果您使用图形客户端程序,请提供该程序版本。

1.9.0

版本

No response

描述

24-06-05 09:30:18[ error ][3854751086 0ms] inbound/mixed[1]: process connection from 127.0.0.1:53570: Get "ws://oaop.xxxxxx.com:8001/weboffice/websocket/v2?_w_appid=AKIOLIOOIbIBRPZr&_w_third_appid=CMQIWXIIRRPZPQKG&_w_third_category=4&_w_third_copy=0&_w_third_export=0&_w_third_fileId=1111111111&_w_third_fileName=111111111&_w_third_fileType=doc&_w_third_mode=view&_w_third_permission=read&_w_third_print=1&_w_third_viewMode=content_view&_w_tokentype=1&route_key=0&wpsPreview=1110110&simple&hidecmb&readonly&simple&hidecmb&__doc_route_key=0&office_type=word&file_id=11111111111": unsupported protocol scheme "ws"

重现方式

移动办公M3软件,如果要加载附件中的word文档、pdf文档等,报错,显示unsupported protocol scheme "ws" 已将该网址加入direct,不起作用,似乎要把该网址直接排除出sing-box、或者直接排除ws这个protocol scheme才行,不知道如何解决?

日志

24-06-05 09:30:18[ error ][3854751086 0ms] inbound/mixed[1]: process connection from 127.0.0.1:53570: Get "ws://oaop.xxxxxx.com:8001/weboffice/websocket/v2?_w_appid=AKIOLIOOIbIBRPZr&_w_third_appid=CMQIWXIIRRPZPQKG&_w_third_category=4&_w_third_copy=0&_w_third_export=0&_w_third_fileId=1111111111&_w_third_fileName=111111111&_w_third_fileType=doc&_w_third_mode=view&_w_third_permission=read&_w_third_print=1&_w_third_viewMode=content_view&_w_tokentype=1&route_key=0&wpsPreview=1110110&simple&hidecmb&readonly&simple&hidecmb&__doc_route_key=0&office_type=word&file_id=11111111111": unsupported protocol scheme "ws"

支持我们

完整性要求

dyhkwong commented 3 weeks ago

非 HTTP 的 TCP 流量通过 HTTP 代理需要用 CONNECT 而不能用 GET/POST。这不是 sing-box 的问题,建议不要启用 tun.platform.http_proxy,并向该软件开发人员回报问题。