fixed warnings

connection_type_change
Robinson 2021-04-26 15:45:11 +02:00
parent ece38d9421
commit 43d01a74e2
1 changed files with 3 additions and 1 deletions

View File

@ -158,13 +158,15 @@ object ResolveConf {
val p = Paths.get(path)
if (Files.exists(p)) {
try {
FileReader(path).use { fr ->
BufferedReader(fr).use { br ->
var nameServers = mutableListOf<InetSocketAddress>()
val nameServerDomains = mutableMapOf<String, List<InetSocketAddress>>()
@Suppress("unused")
var port = 53 // this is really used, it's just that the kotlin compiler doesn't notice
var domainName = Dns.DEFAULT_SEARCH_DOMAIN
var port = 53
var line0: String?
loop@ while (br.readLine().also { line0 = it?.trim() } != null) {