Commit 3c08c754 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

More API changes

parent 32ba14cb
......@@ -321,7 +321,7 @@ fun HttpsDnsServerInformation.Companion.fromServerUrls(primaryUrl:String, second
)
}
fun DnsServerInformation.Companion.tlsServerFromHosts(primaryHost:String, secondaryHost:String?): DnsServerInformation<TLSUpstreamAddress> {
fun tlsServerFromHosts(primaryHost:String, secondaryHost:String?): DnsServerInformation<TLSUpstreamAddress> {
val serverInfo = mutableListOf<DnsServerConfiguration<TLSUpstreamAddress>>()
serverInfo.add(
DnsServerConfiguration(address = createTlsUpstreamAddress(primaryHost), experimental = false, preferredProtocol = TLS, supportedProtocols = listOf(TLS))
......
......@@ -9,7 +9,6 @@ import android.view.MenuItem
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import com.frostnerd.dnstunnelproxy.DnsServerInformation
import com.frostnerd.encrypteddnstunnelproxy.HttpsDnsServerInformation
import com.frostnerd.lifecyclemanagement.BaseActivity
import com.frostnerd.smokescreen.*
......@@ -234,7 +233,7 @@ class ConfigureActivity : BaseActivity() {
if (serverType.selectedItemPosition == 1) {
mode = getString(R.string.tasker_mode_dot)
BackgroundVpnConfigureActivity.writeServerInfoToIntent(
DnsServerInformation.tlsServerFromHosts(
tlsServerFromHosts(
primary,
secondary
), settings
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment