doc: add Hysteria2 doc

This commit is contained in:
wwqgtxx
2023-09-21 10:43:45 +08:00
parent 9b8e2d9343
commit 6c3b973748
3 changed files with 22 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ import (
"fmt"
"net"
"net/netip"
"regexp"
"strconv"
"sync"
@@ -123,6 +124,8 @@ func safeConnClose(c net.Conn, err error) {
}
}
var rateStringRegexp = regexp.MustCompile(`^(\d+)\s*([KMGT]?)([Bb])ps$`)
func stringToBps(s string) uint64 {
if s == "" {
return 0