mirror of
https://github.com/fatedier/frp.git
synced 2025-06-16 16:28:23 +00:00
Compare commits
4 Commits
ba9c31639b
...
ce5a1e9cd7
Author | SHA1 | Date | |
---|---|---|---|
|
ce5a1e9cd7 | ||
|
32f09c4b60 | ||
|
f63b4d5c29 | ||
|
ced2fb69b7 |
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>frps dashboard</title>
|
||||
<script type="module" crossorigin src="./index-ky4re_ta.js"></script>
|
||||
<script type="module" crossorigin src="./index-Q42Pu2_S.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./index-rzPDshRD.css">
|
||||
</head>
|
||||
|
||||
|
@ -17,7 +17,7 @@ package nathole
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"math/rand/v2"
|
||||
"net"
|
||||
"slices"
|
||||
"strconv"
|
||||
@ -341,7 +341,7 @@ func sendSidMessage(
|
||||
TransactionID: transactionID,
|
||||
Sid: sid,
|
||||
Response: false,
|
||||
Nonce: strings.Repeat("0", rand.Intn(20)),
|
||||
Nonce: strings.Repeat("0", rand.IntN(20)),
|
||||
}
|
||||
buf, err := EncodeMessage(m, key)
|
||||
if err != nil {
|
||||
@ -398,7 +398,7 @@ func sendSidMessageToRandomPorts(
|
||||
used := sets.New[int]()
|
||||
getUnusedPort := func() int {
|
||||
for i := 0; i < 10; i++ {
|
||||
port := rand.Intn(65535-1024) + 1024
|
||||
port := rand.IntN(65535-1024) + 1024
|
||||
if !used.Has(port) {
|
||||
used.Insert(port)
|
||||
return port
|
||||
|
@ -20,7 +20,7 @@ import (
|
||||
"crypto/subtle"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
mathrand "math/rand"
|
||||
mathrand "math/rand/v2"
|
||||
"net"
|
||||
"strconv"
|
||||
"strings"
|
||||
@ -124,7 +124,7 @@ func RandomSleep(duration time.Duration, minRatio, maxRatio float64) time.Durati
|
||||
if max <= min {
|
||||
n = min
|
||||
} else {
|
||||
n = mathrand.Int63n(max-min) + min
|
||||
n = mathrand.Int64N(max-min) + min
|
||||
}
|
||||
d := duration * time.Duration(n) / time.Duration(1000)
|
||||
time.Sleep(d)
|
||||
|
@ -15,7 +15,7 @@
|
||||
package wait
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"math/rand/v2"
|
||||
"time"
|
||||
|
||||
"github.com/fatedier/frp/pkg/util/util"
|
||||
|
@ -111,7 +111,7 @@ const formatTrafficOut = (row: BaseProxy, _: TableColumnCtx<BaseProxy>) => {
|
||||
}
|
||||
|
||||
const clearOfflineProxies = () => {
|
||||
fetch('/api/proxies?status=offline', {
|
||||
fetch('../api/proxies?status=offline', {
|
||||
method: 'DELETE',
|
||||
credentials: 'include',
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user