mihomo icon indicating copy to clipboard operation
mihomo copied to clipboard

[Feature] UDP over TCP for all trojan, vmess, vless or other protocol

Open JeelsBoobz opened this issue 1 year ago • 6 comments

Verify steps

  • [X] 我已经在 Issue Tracker 中找过我要提出的请求 I have searched on the issue tracker for a related feature request.
  • [X] 我已经仔细看过 Documentation 并无法找到这个功能 I have read the documentation and was unable to solve the issue.

Description

Is it possible that UDP over TCP will be supported for other than shadowsocks?

JeelsBoobz avatar Jan 18 '24 06:01 JeelsBoobz

It is enabled by default under these protocols

Arxhexa avatar Jan 18 '24 15:01 Arxhexa

It is enabled by default under these protocols

I've tried using a server without UDP support, but I can't access UDP Are there any special settings?

JeelsBoobz avatar Jan 19 '24 01:01 JeelsBoobz

It is enabled by default under these protocols

I've tried using a server without UDP support, but I can't access UDP Are there any special settings?

If you say that UDP is not supported, it means that UDP is not supported at all, including initiation, then it is definitely impossible to implement UDP. UDP over TCP only acts on the proxy forwarding part. UDP will still be used when the server initiates an actual request.

Skyxim avatar Jan 19 '24 01:01 Skyxim

It is enabled by default under these protocols

I've tried using a server without UDP support, but I can't access UDP Are there any special settings?

Your server needs to support sending UDP packets. You can set udp: false if you still want to utilize UDP, but then those packets will be initiated on your local machine and not be wrapped in TCP packets.

Arxhexa avatar Jan 19 '24 02:01 Arxhexa

I've tried udp: false, but the connection uses DIRECT instead of PROXY

JeelsBoobz avatar Jan 19 '24 07:01 JeelsBoobz

I've tried udp: false, but the connection uses DIRECT instead of PROXY

That's literally what he said.

those packets will be initiated on your local machine

If your server don't support UDP then it can't serve UDP.

lux5am avatar Feb 08 '24 23:02 lux5am