From b45a7fa939a1ac6850e93375478158fc33b96851 Mon Sep 17 00:00:00 2001 From: vadym Date: Tue, 9 Jun 2020 23:53:20 -0700 Subject: [PATCH] 1. list peers fix --- .../io/github/chronosx88/yggdrasil/YggdrasilTunService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt index d6160f2..5b9c6c1 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt @@ -75,7 +75,9 @@ class YggdrasilTunService : VpnService() { } private fun fixConfig(config: MutableMap): MutableMap { - config["Peers"] = "tcp://194.177.21.156:5066" + val peers = arrayListOf(); + peers.add("tcp://194.177.21.156:5066"); + config["Peers"] = peers config["Listen"] = "" config["AdminListen"] = "tcp://localhost:9001" config["IfName"] = "dummy"