Fix missing VPN mode branch for hysteria2

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2023-09-10 16:14:25 +08:00
parent a2332d7df0
commit c1cd0edc3e
+6
View File
@@ -891,6 +891,12 @@ class ConnectAction(Action):
self.Hysteria2.start(self.coreText)
if self.coreJSON:
if isVPNMode():
if PLATFORM == 'Windows' or PLATFORM == 'Darwin':
# Currently VPN Mode is only supported on Windows and macOS
self.startTun2socks()
return Hysteria2.name()
# No matching core