diff --git a/client/internal/browserprofile/profile.go b/client/internal/browserprofile/profile.go index 8f9bf61..1bd5591 100644 --- a/client/internal/browserprofile/profile.go +++ b/client/internal/browserprofile/profile.go @@ -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") } - diff --git a/client/internal/captcha/captcha.go b/client/internal/captcha/captcha.go index be91cf8..199e160 100644 --- a/client/internal/captcha/captcha.go +++ b/client/internal/captcha/captcha.go @@ -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"` } diff --git a/client/internal/namegen/namegen_test.go b/client/internal/namegen/namegen_test.go index 688da38..98076de 100644 --- a/client/internal/namegen/namegen_test.go +++ b/client/internal/namegen/namegen_test.go @@ -23,10 +23,10 @@ func TestParseLinesStripsBlanksAndWhitespace(t *testing.T) { func TestFeminizeSurname(t *testing.T) { cases := map[string]string{ // -ов / -ев / -ёв / -ин / -ын -> +а - "Иванов": "Иванова", - "Лебедев": "Лебедева", - "Соловьёв": "Соловьёва", - "Никитин": "Никитина", + "Иванов": "Иванова", + "Лебедев": "Лебедева", + "Соловьёв": "Соловьёва", + "Никитин": "Никитина", "Солженицын": "Солженицына", // -ий / -ый / -ой -> -ая "Чайковский": "Чайковская", diff --git a/client/main.go b/client/main.go index f56806f..7872789 100644 --- a/client/main.go +++ b/client/main.go @@ -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 diff --git a/client/wrap.go b/client/wrap.go index 16a599a..37f2f99 100644 --- a/client/wrap.go +++ b/client/wrap.go @@ -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 )