diff --git a/Passepartout/Sources/Services/InfrastructurePreset.swift b/Passepartout/Sources/Services/InfrastructurePreset.swift index 87baad20..dfee03e3 100644 --- a/Passepartout/Sources/Services/InfrastructurePreset.swift +++ b/Passepartout/Sources/Services/InfrastructurePreset.swift @@ -38,6 +38,8 @@ public struct InfrastructurePreset: Codable { case key case wrapKeyData = "wrap.key.data" + + case hostname } public enum PresetKeys: String, CodingKey { @@ -119,6 +121,9 @@ public struct InfrastructurePreset: Codable { } } } + if let pattern = external[.hostname] { + sessionBuilder.hostname = pattern.replacingOccurrences(of: "${id}", with: pool.id) + } configuration.sessionConfiguration = sessionBuilder.build() }