diff --git a/ios/PacketTunnel/WireGuardAdapter/WgAdapter.swift b/ios/PacketTunnel/WireGuardAdapter/WgAdapter.swift index 7ad9b6be9a76..3392e585ee1c 100644 --- a/ios/PacketTunnel/WireGuardAdapter/WgAdapter.swift +++ b/ios/PacketTunnel/WireGuardAdapter/WgAdapter.swift @@ -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) } diff --git a/ios/PacketTunnelCore/Actor/Protocols/TunnelAdapterProtocol.swift b/ios/PacketTunnelCore/Actor/Protocols/TunnelAdapterProtocol.swift index 0bbbbbf8a5b9..ea798075d24b 100644 --- a/ios/PacketTunnelCore/Actor/Protocols/TunnelAdapterProtocol.swift +++ b/ios/PacketTunnelCore/Actor/Protocols/TunnelAdapterProtocol.swift @@ -34,4 +34,5 @@ public struct TunnelAdapterConfiguration { public struct TunnelPeer { public var endpoint: AnyIPEndpoint public var publicKey: PublicKey + public var preSharedKey: PreSharedKey? }