Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
72c65c51ed
7 files changed
+30
-9
No files matched your search
@@ -1,3 +1,3 @@
|
||||
{
|
||||
".": "1.4.1"
|
||||
".": "1.4.3"
|
||||
}
|
||||
@@ -1,5 +1,20 @@
|
||||
# Changelog
|
||||
|
||||
## [1.4.3](https://github.com/samosvalishe/free-turn-proxy/compare/v1.4.2...v1.4.3) (2026-06-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bump captcha ([b0c3e65](https://github.com/samosvalishe/free-turn-proxy/commit/b0c3e65c40bed7e09610d5a4a49d322fa6d55fea))
|
||||
* OBF_TIMING -> docker ([d8f0e7e](https://github.com/samosvalishe/free-turn-proxy/commit/d8f0e7e99554372a4b6dd057e760509e8a65bece))
|
||||
|
||||
## [1.4.2](https://github.com/samosvalishe/free-turn-proxy/compare/v1.4.1...v1.4.2) (2026-06-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* captcha ([d73f426](https://github.com/samosvalishe/free-turn-proxy/commit/d73f42603aacefa3ec08d43771a073393ae0500b))
|
||||
|
||||
## [1.4.1](https://github.com/samosvalishe/free-turn-proxy/compare/v1.4.0...v1.4.1) (2026-06-19)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ services:
|
||||
# LISTEN_ADDR: "0.0.0.0:56000"
|
||||
# MODE: "tcp" # tcp = TCP-форвардер для Xray/sing-box; default udp = WireGuard
|
||||
# OBF_PROFILE: "rtpopus" # none (default) | rtpopus
|
||||
# OBF_TIMING: "20ms" # межпакетная задержка для RTP-мимикрии; 0=выкл; только с OBF_PROFILE и MODE=udp
|
||||
# OBF_KEY задаётся в .env (не коммитьте ключ в git)
|
||||
# CLIENTS_FILE: "/app/clients.json" # раскомментируйте для авторизации по Client ID
|
||||
# DEBUG: "false"
|
||||
|
||||
@@ -20,6 +20,10 @@ if [ -n "${OBF_PROFILE}" ] && [ "${OBF_PROFILE}" != "none" ]; then
|
||||
set -- "$@" -obf-profile "$OBF_PROFILE" -obf-key "$OBF"
|
||||
fi
|
||||
|
||||
if [ -n "${OBF_TIMING}" ]; then
|
||||
set -- "$@" -obf-timing "${OBF_TIMING}"
|
||||
fi
|
||||
|
||||
if [ "${DEBUG}" = "true" ]; then
|
||||
set -- "$@" -debug
|
||||
fi
|
||||
|
||||
@@ -35,7 +35,7 @@ func SetLogger(l logx.Logger) { Log = logx.OrNop(l) }
|
||||
|
||||
const (
|
||||
captchaAPIVersion = "5.131"
|
||||
captchaScriptVersion = "1.1.1357"
|
||||
captchaScriptVersion = "1.1.1359"
|
||||
captchaDeviceInfo = `{"screenWidth":1920,"screenHeight":1080,"screenAvailWidth":1920,"screenAvailHeight":1080,"innerWidth":1920,"innerHeight":951,"devicePixelRatio":1,"language":"en-US","languages":["en-US","en"],"webdriver":false,"hardwareConcurrency":8,"notificationsPermission":"denied"}`
|
||||
)
|
||||
|
||||
|
||||
@@ -40,16 +40,11 @@ func ParseError(errData map[string]any) *Error {
|
||||
if sidNum, ok2 := errData["captcha_sid"].(float64); ok2 {
|
||||
captchaSid = fmt.Sprintf("%.0f", sidNum)
|
||||
} else {
|
||||
Log.Warnf("[Captcha] missing captcha_sid in error data")
|
||||
return nil
|
||||
Log.Debugf("[Captcha] captcha_sid not present in error data")
|
||||
}
|
||||
}
|
||||
|
||||
captchaImg, ok := errData["captcha_img"].(string)
|
||||
if !ok {
|
||||
Log.Warnf("[Captcha] missing captcha_img in error data")
|
||||
return nil
|
||||
}
|
||||
captchaImg, _ := errData["captcha_img"].(string)
|
||||
|
||||
errorMsg, ok := errData["error_msg"].(string)
|
||||
if !ok {
|
||||
|
||||
@@ -169,6 +169,12 @@ func (c *Client) solveCaptcha(
|
||||
|
||||
// buildCaptchaRetryData формирует тело POST для следующей попытки captcha.
|
||||
func buildCaptchaRetryData(link, escapedName, token1 string, captchaErr *captcha.Error, successToken, captchaKey string) string {
|
||||
if captchaErr.CaptchaSid == "" {
|
||||
return fmt.Sprintf(
|
||||
"vk_join_link=https://vk.ru/call/join/%s&name=%s&success_token=%s&access_token=%s",
|
||||
link, escapedName, neturl.QueryEscape(successToken), token1,
|
||||
)
|
||||
}
|
||||
if captchaKey != "" {
|
||||
return fmt.Sprintf(
|
||||
"vk_join_link=https://vk.ru/call/join/%s&name=%s&captcha_key=%s&captcha_sid=%s&access_token=%s",
|
||||
|
||||
Reference in new issue
Block a user