Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持非tun运行吗? #29

Open
l-we opened this issue Jun 28, 2022 · 5 comments
Open

支持非tun运行吗? #29

l-we opened this issue Jun 28, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@l-we
Copy link

l-we commented Jun 28, 2022

想用普通的进程方式运行,既监听 socks 和 http,
但是没有合适的 Windows GUI 程序。

@bdbai bdbai added the enhancement New feature or request label Jun 28, 2022
@bdbai
Copy link
Member

bdbai commented Jun 28, 2022

Maple 是基于 VPN 平台运行的,需要连接上 VPN 才能工作。也许可以在配置没有启用 tun 的情况下,连接 VPN 但不添加路由?如果这个方案对你来说可以的话,后续可以添加支持。

@l-we
Copy link
Author

l-we commented Jun 29, 2022

可以尝试一下,理论不添加路由相当于直连了,不知道会不会有其他影响,

@bdbai
Copy link
Member

bdbai commented Jul 7, 2022

调了一通,发现 UWP 是没办法监听 loopback 地址的,启用 LoopbackExempt 也不可行。https://docs.microsoft.com/en-us/previous-versions/windows/apps/hh780593(v=win.10) 这里提到

Note Loopback is permitted only for development purposes. Usage by a Windows Runtime app installed outside of Visual Studio is not permitted. Further, a Windows Runtime app can use an IP loopback only as the target address for a client network request. So a Windows Runtime app that uses a DatagramSocket or StreamSocketListener to listen on an IP loopback address is prevented from receiving any incoming packets.

以及参考这个回答:
https://stackoverflow.com/a/50324363

@BestOwl
Copy link

BestOwl commented Jul 7, 2022

也许可以试试这个
https://docs.microsoft.com/en-us/windows/iot-core/develop-your-app/loopback

The localhost inbound loopback policy for Windows IoT Core must be enabled for UWP apps that implement servers. This policy is controlled by the following registry key:
[HKEY_LOCAL_MACHINE\system\currentcontrolset\services\mpssvc\parameters]
"IoTInboundLoopbackPolicy"=dword:00000001

不知道是否适用于桌面版的 Win10/11

@KexyBiscuit
Copy link

@BestOwl 我印象里是不能的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants