diff --git a/IVPNClient/Models/V2Ray/V2RayCore.swift b/IVPNClient/Models/V2Ray/V2RayCore.swift index 41ec6959c..2b2fdda7a 100644 --- a/IVPNClient/Models/V2Ray/V2RayCore.swift +++ b/IVPNClient/Models/V2Ray/V2RayCore.swift @@ -71,6 +71,16 @@ class V2RayCore { return nil } + if UserDefaults.shared.v2rayProtocol == "tcp" { + return V2RayConfig.createTcp( + outboundIp: settings.outboundIp, + outboundPort: settings.outboundPort, + inboundIp: settings.inboundIp, + inboundPort: settings.inboundPort, + outboundUserId: settings.id + ) + } + return V2RayConfig.createQuick( outboundIp: settings.outboundIp, outboundPort: settings.outboundPort,