mirror of
https://github.com/hackdiaz-dev/free-turn-proxy.git
synced 2026-10-12 09:41:53 +02:00
chore: go fmt
This commit is contained in:
@@ -50,4 +50,3 @@ func ApplyFhttp(req *fhttp.Request, profile Profile) {
|
||||
req.Header.Set("Accept-Language", "en-US,en;q=0.9")
|
||||
req.Header.Set("DNT", "1")
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ type captchaInit struct {
|
||||
}
|
||||
|
||||
type captchaInitData struct {
|
||||
ShowCaptchaType string `json:"show_captcha_type"`
|
||||
ShowCaptchaType string `json:"show_captcha_type"`
|
||||
CaptchaSettings []captchaInitSetting `json:"captcha_settings"`
|
||||
}
|
||||
|
||||
|
||||
@@ -23,10 +23,10 @@ func TestParseLinesStripsBlanksAndWhitespace(t *testing.T) {
|
||||
func TestFeminizeSurname(t *testing.T) {
|
||||
cases := map[string]string{
|
||||
// -ов / -ев / -ёв / -ин / -ын -> +а
|
||||
"Иванов": "Иванова",
|
||||
"Лебедев": "Лебедева",
|
||||
"Соловьёв": "Соловьёва",
|
||||
"Никитин": "Никитина",
|
||||
"Иванов": "Иванова",
|
||||
"Лебедев": "Лебедева",
|
||||
"Соловьёв": "Соловьёва",
|
||||
"Никитин": "Никитина",
|
||||
"Солженицын": "Солженицына",
|
||||
// -ий / -ый / -ой -> -ая
|
||||
"Чайковский": "Чайковская",
|
||||
|
||||
+2
-2
@@ -62,8 +62,8 @@ var (
|
||||
connectedStreams atomic.Int32
|
||||
globalAppCancel context.CancelFunc
|
||||
handshakeSem = make(chan struct{}, 3)
|
||||
isDebug bool
|
||||
manualCaptcha bool
|
||||
isDebug bool
|
||||
manualCaptcha bool
|
||||
)
|
||||
|
||||
var appDialer net.Dialer
|
||||
|
||||
+3
-3
@@ -31,9 +31,9 @@ import (
|
||||
|
||||
const (
|
||||
wrapKeyLen = 32
|
||||
wrapHeaderLen = 13 // DTLS record header
|
||||
wrapTagLen = 16 // Poly1305 tag
|
||||
wrapLenPrefix = 2 // uint16 BE real payload length
|
||||
wrapHeaderLen = 13 // DTLS record header
|
||||
wrapTagLen = 16 // Poly1305 tag
|
||||
wrapLenPrefix = 2 // uint16 BE real payload length
|
||||
wrapOverhead = wrapHeaderLen + wrapTagLen + wrapLenPrefix // 31
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user