Skip to content

Commit

Permalink
Add preSharedKey to TunnelPeer, pass it to TunnelConfiguration if pre…
Browse files Browse the repository at this point in the history
…sent
  • Loading branch information
acb-mv authored and buggmagnet committed Mar 18, 2024
1 parent 113d3af commit 23cf15d
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 23cf15d

Please sign in to comment.