Inject external provider pool hostname
This commit is contained in:
parent
381668ebed
commit
547c669e81
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue