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 key
|
||||||
|
|
||||||
case wrapKeyData = "wrap.key.data"
|
case wrapKeyData = "wrap.key.data"
|
||||||
|
|
||||||
|
case hostname
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum PresetKeys: String, CodingKey {
|
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()
|
configuration.sessionConfiguration = sessionBuilder.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue