added .gitignore for iptable

This commit is contained in:
2021-07-08 22:47:51 +04:00
parent 6df72c4abb
commit c0f70e87f4
4 changed files with 5 additions and 30 deletions

5
.gitignore vendored
View File

@@ -7,4 +7,7 @@ server/docker/__pycache__
p2p-rendering-computation
p2prc
config.json
.vscode/
.vscode/
#ignore generated iptables
p2p/iptable/

View File

@@ -1,16 +1,9 @@
{
"ip_address": [
{
"ipv4": "",
"ipv6": "2001:8f8:172d:7e27:f1ba:1531:413f:1177",
"latency": 500894,
"download": 0,
"upload": 0
},
{
"ipv4": "172.104.44.195",
"ipv6": "",
"latency": 140786917,
"latency": 0,
"download": 0,
"upload": 0
}

0
p2p/iptable/.gitkeep Normal file
View File

View File

@@ -1,21 +0,0 @@
package main
import (
"fmt"
"github.com/showwin/speedtest-go/speedtest"
)
func main() {
user, _ := speedtest.FetchUserInfo()
serverList, _ := speedtest.FetchServerList(user)
targets, _ := serverList.FindServer([]int{})
for _, s := range targets {
s.PingTest()
s.DownloadTest(false)
s.UploadTest(false)
fmt.Printf("Latency: %s, Download: %f, Upload: %f\n", s.Latency, s.DLSpeed, s.ULSpeed)
}
}