mirror of
https://github.com/FloatTech/zbpdata.git
synced 2025-06-28 23:47:46 +09:00
Compare commits
3 Commits
ca3652920a
...
4f751a1cda
Author | SHA1 | Date | |
---|---|---|---|
|
4f751a1cda | ||
|
f97dac5ce0 | ||
|
74c5464a0b |
13
main.go
13
main.go
@ -9,6 +9,7 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/fs"
|
"io/fs"
|
||||||
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"unicode"
|
"unicode"
|
||||||
@ -57,11 +58,18 @@ func main() {
|
|||||||
*(*unsafe.Pointer)(unsafe.Pointer(&md5s[i])) = unsafe.Pointer(&buf)
|
*(*unsafe.Pointer)(unsafe.Pointer(&md5s[i])) = unsafe.Pointer(&buf)
|
||||||
*(*uintptr)(unsafe.Add(unsafe.Pointer(&md5s[i]), unsafe.Sizeof(uintptr(0)))) = uintptr(16)
|
*(*uintptr)(unsafe.Add(unsafe.Pointer(&md5s[i]), unsafe.Sizeof(uintptr(0)))) = uintptr(16)
|
||||||
}
|
}
|
||||||
r := registry.NewRegedit("reilia.fumiama.top:32664", "", "fumiama", os.Getenv("REILIA_SPS"))
|
hosts, err := net.LookupHost("reilia.fumiama.top")
|
||||||
err = r.Connect()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
for _, h := range hosts {
|
||||||
|
fmt.Println("推送到:", h)
|
||||||
|
r := registry.NewRegedit(net.JoinHostPort(h, "32664"), "", "fumiama", os.Getenv("REILIA_SPS"))
|
||||||
|
err = r.Connect()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
for i, fn := range files {
|
for i, fn := range files {
|
||||||
for c := 0; c < 16; c++ {
|
for c := 0; c < 16; c++ {
|
||||||
err = r.Set("data/"+fn, md5s[i])
|
err = r.Set("data/"+fn, md5s[i])
|
||||||
@ -83,4 +91,5 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ = r.Close()
|
_ = r.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user