addeded 2 extra cli commands: ListServers and UpdateIPTableList
This commit is contained in:
@@ -16,7 +16,7 @@ var CliAction = func(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
//Listing servers and also updates IP tables (Default 3 hops)
|
||||
if ListServers {
|
||||
if UpdateServerList {
|
||||
|
||||
err := client.UpdateIpTableListClient()
|
||||
if err != nil {
|
||||
@@ -26,6 +26,10 @@ var CliAction = func(ctx *cli.Context) error {
|
||||
p2p.PrintIpTable()
|
||||
}
|
||||
|
||||
if ServerList {
|
||||
p2p.PrintIpTable()
|
||||
}
|
||||
|
||||
// Function called to stop and remove server from Docker
|
||||
if RemoveVM != "" && ID != "" {
|
||||
err := client.RemoveContianer(RemoveVM,ID)
|
||||
|
||||
Reference in New Issue
Block a user