- Get DNS servers dynamically also then baresip is started the first time.
This commit is contained in:
@@ -138,6 +138,7 @@ class BaresipService: Service() {
|
||||
Utils.copyAssetToFile(applicationContext, a, "$filesPath/$a")
|
||||
} else {
|
||||
Log.d(LOG_TAG, "Asset '$a' already copied")
|
||||
}
|
||||
if (a == "config") {
|
||||
var dnsServers = listOf<InetAddress>()
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
@@ -152,7 +153,6 @@ class BaresipService: Service() {
|
||||
Config.initialize(dnsServers)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ContactsActivity.restoreContacts(applicationContext.filesDir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user