xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.85k stars 404 forks source link

[Bug] flag provided but not defined: -device #244

Closed hosseinkhojany closed 1 year ago

hosseinkhojany commented 1 year ago

Verify steps

Version

2.5.0

What OS are you seeing the problem on?

Windows

Description

C:\Users\hosse\Desktop\xray>tun2socks -device wintun -proxy socks5://127.0.0.1:10808 flag provided but not defined: -device

CLI or Config

C:\Users\hosse\Desktop\xray>tun2socks -device wintun -proxy socks5://127.0.0.1:10808 flag provided but not defined: -device

Logs

C:\Users\hosse\Desktop\xray>tun2socks -device wintun -proxy socks5://127.0.0.1:10808
flag provided but not defined: -device

How to Reproduce

C:\Users\hosse\Desktop\xray>tun2socks -device wintun -proxy socks5://127.0.0.1:10808 flag provided but not defined: -device

xjasonlyu commented 1 year ago

I cannot reproduce this issue on my side. Could it be possibly caused by your shell interpreter?

hosseinkhojany commented 1 year ago

To use it in windows, download [wintun](https://www.wintun.net/) to the tun2socks folder or the system PATH and start the program.

Screenshot 2023-04-18 124627

Maybe wintun is not recognized this configuration is ok ?