Snode version number

Getting the version number from the API and checking the last node in the onion routing, making sure its version is at least 2.8.0
This commit is contained in:
ThomasSession
2024-07-23 14:52:53 +10:00
parent 9957edd5ac
commit 6b55e37cda
5 changed files with 87 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
package org.session.libsignal.utilities
class Snode(val address: String, val port: Int, val publicKeySet: KeySet?) {
class Snode(val address: String, val port: Int, val publicKeySet: KeySet?, val version: String) {
val ip: String get() = address.removePrefix("https://")
public enum class Method(val rawValue: String) {