added .gitignore for iptable
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -7,4 +7,7 @@ server/docker/__pycache__
|
||||
p2p-rendering-computation
|
||||
p2prc
|
||||
config.json
|
||||
.vscode/
|
||||
.vscode/
|
||||
|
||||
#ignore generated iptables
|
||||
p2p/iptable/
|
||||
@@ -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
0
p2p/iptable/.gitkeep
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user