Skip to content

Commit

Permalink
Merge branch 'enable-setting-the-preshared-key-in-tunnelconfiguration…
Browse files Browse the repository at this point in the history
…-ios-527'
  • Loading branch information
buggmagnet committed Mar 18, 2024
2 parents 113d3af + 23cf15d commit 10aeac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ios/PacketTunnel/WireGuardAdapter/WgAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ private extension TunnelAdapterConfiguration {
var peerConfig = PeerConfiguration(publicKey: peer.publicKey)
peerConfig.endpoint = peer.endpoint.wgEndpoint
peerConfig.allowedIPs = allowedIPs
peerConfig.preSharedKey = peer.preSharedKey
peers.append(peerConfig)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ public struct TunnelAdapterConfiguration {
public struct TunnelPeer {
public var endpoint: AnyIPEndpoint
public var publicKey: PublicKey
public var preSharedKey: PreSharedKey?
}

0 comments on commit 10aeac9

Please sign in to comment.