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

@@ -34,8 +34,14 @@ func Server() {
//Gets Ip Table from server node
r.GET("/IpTable", func(c *gin.Context) {
//jsonData, err := ioutil.ReadAll(c.Request.Body)
//if err != nil {
// c.String(http.StatusOK, fmt.Sprint(err))
//}
// Runs speed test to return only servers in the IP table pingable
err := p2p.SpeedTest()
err := p2p.LocalSpeedTestIpTable()
if err != nil {
c.String(http.StatusOK, fmt.Sprint(err))
}