|
@@ -130,8 +130,9 @@ QIOChannelTLS *migration_tls_client_create(MigrationState *s,
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
- if (s->parameters.tls_hostname && *s->parameters.tls_hostname) {
|
|
|
- hostname = s->parameters.tls_hostname;
|
|
|
+ const char *tls_hostname = migrate_tls_hostname();
|
|
|
+ if (tls_hostname && *tls_hostname) {
|
|
|
+ hostname = tls_hostname;
|
|
|
}
|
|
|
|
|
|
return qio_channel_tls_new_client(ioc, creds, hostname, errp);
|