diff options
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt b/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt index 6523250..04f6f49 100644 --- a/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt +++ b/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeInfo.kt | |||
@@ -76,18 +76,18 @@ data class NodeInfo(val name: String, | |||
76 | ofNodeDump(NODE_DUMP_PATTERN.matcher(line).apply { find() }) | 76 | ofNodeDump(NODE_DUMP_PATTERN.matcher(line).apply { find() }) |
77 | 77 | ||
78 | private fun ofNodeDump(matcher: Matcher) = NodeInfo( | 78 | private fun ofNodeDump(matcher: Matcher) = NodeInfo( |
79 | name = matcher[1], | 79 | name = matcher[1]!!, |
80 | id = matcher[2], | 80 | id = matcher[2]!!, |
81 | ip = matcher[3], | 81 | ip = matcher[3]!!, |
82 | port = matcher[4], | 82 | port = matcher[4]!!, |
83 | cipher = matcher[5]!!.toInt(), | 83 | cipher = matcher[5]!!.toInt(), |
84 | digest = matcher[6]!!.toInt(), | 84 | digest = matcher[6]!!.toInt(), |
85 | macLength = matcher[7]!!.toInt(), | 85 | macLength = matcher[7]!!.toInt(), |
86 | compression = matcher[8]!!.toInt(), | 86 | compression = matcher[8]!!.toInt(), |
87 | options = matcher[9]!!.toInt(16), | 87 | options = matcher[9]!!.toInt(16), |
88 | status = matcher[10]!!.toInt(16), | 88 | status = matcher[10]!!.toInt(16), |
89 | nextHop = matcher[11], | 89 | nextHop = matcher[11]!!, |
90 | via = matcher[12], | 90 | via = matcher[12]!!, |
91 | distance = matcher[13]!!.toInt(), | 91 | distance = matcher[13]!!.toInt(), |
92 | pMtu = matcher[14]!!.toInt(), | 92 | pMtu = matcher[14]!!.toInt(), |
93 | minMtu = matcher[15]!!.toInt(), | 93 | minMtu = matcher[15]!!.toInt(), |