added UpdateIpTableListClient

This commit is contained in:
2021-04-04 21:51:11 +04:00
parent 1c733a694e
commit 2875b7228b
5 changed files with 108 additions and 6 deletions

View File

@@ -15,8 +15,14 @@ var CliAction = func(ctx *cli.Context) error {
//server.Rpc()
}
//Listing servers avaliable
if List_servers {
//Listing servers and also updates IP tables (Default 3 hops)
if ListServers {
err := client.UpdateIpTableListClient()
if err != nil {
fmt.Print(err)
}
p2p.PrintIpTable()
}