mirror of
https://github.com/square/okhttp.git
synced 2025-07-29 17:41:17 +03:00
Adopt HttpUrl's new Kotlin API
This commit is contained in:
@ -309,7 +309,7 @@ class DnsOverHttps internal constructor(builder: Builder) : Dns {
|
||||
val hosts = builder.bootstrapDnsHosts
|
||||
|
||||
return if (hosts != null) {
|
||||
BootstrapDns(builder.url!!.host(), hosts)
|
||||
BootstrapDns(builder.url!!.host, hosts)
|
||||
} else {
|
||||
builder.systemDns
|
||||
}
|
||||
|
Reference in New Issue
Block a user