patching fixes for server list

This commit is contained in:
2021-04-15 13:55:33 +04:00
parent 1093f34ce8
commit 1504496eb1
4 changed files with 35 additions and 15 deletions

View File

@@ -47,14 +47,17 @@ func UpdateIpTable(IpAddress string) error {
// Updates IP table based on information provided
// by the server
err = ipStruct.SpeedTestUpdatedIPTable()
if err != nil {
return err
if len(ipStruct.IpAddress) > 0 {
err = ipStruct.SpeedTestUpdatedIPTable()
if err != nil {
return err
}
}
return nil
}
// UpdateIpTableListClient updates IP tables (Default 3 hops) based on server information available
//on the ip tables
func UpdateIpTableListClient() error {