Skip to content

Commit

Permalink
feat: update V2RayCore.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Sep 26, 2023
1 parent bb37941 commit 9672f40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions IVPNClient/Models/V2Ray/V2RayCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9672f40

Please sign in to comment.