chore: lint fix
This commit is contained in:
1 parent
8311a2e2f9
commit
e5874e3c30
3 files changed
+7
-4
No files matched your search
@@ -308,12 +308,12 @@ func (s *captchaSession) fetchCaptchaHTML(redirectURI string) (string, error) {
|
|||||||
|
|
||||||
func (s *captchaSession) resolveDebugInfo(scriptURL string) string {
|
func (s *captchaSession) resolveDebugInfo(scriptURL string) string {
|
||||||
if scriptURL != "" {
|
if scriptURL != "" {
|
||||||
if v, err := s.fetchDebugInfoJS(scriptURL); err == nil {
|
v, err := s.fetchDebugInfoJS(scriptURL)
|
||||||
|
if err == nil {
|
||||||
s.logger().Debugf("[Captcha] debug_info from JS len=%d", len(v))
|
s.logger().Debugf("[Captcha] debug_info from JS len=%d", len(v))
|
||||||
return v
|
return v
|
||||||
} else {
|
|
||||||
s.logger().Warnf("[Captcha] debug_info JS fetch failed: %v; using UUID fallback", err)
|
|
||||||
}
|
}
|
||||||
|
s.logger().Warnf("[Captcha] debug_info JS fetch failed: %v; using UUID fallback", err)
|
||||||
} else {
|
} else {
|
||||||
s.logger().Warnf("[Captcha] captcha script URL not in HTML; using UUID fallback")
|
s.logger().Warnf("[Captcha] captcha script URL not in HTML; using UUID fallback")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
tlsclient "github.com/bogdanfinn/tls-client"
|
tlsclient "github.com/bogdanfinn/tls-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (c *Client) defaultAutoSolve(
|
func (*Client) defaultAutoSolve(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
captchaErr *captcha.Error,
|
captchaErr *captcha.Error,
|
||||||
streamID int,
|
streamID int,
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ type TurnCredentials struct {
|
|||||||
Link string
|
Link string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Публичные app_id/secret штатных VK-клиентов (зашиты в сами приложения), не наши приватные креды.
|
||||||
|
//
|
||||||
|
//nolint:gosec // G101: публичные VK app secrets
|
||||||
var DefaultCredentials = []VKCredentials{
|
var DefaultCredentials = []VKCredentials{
|
||||||
{ClientID: "6287487", ClientSecret: "QbYic1K3lEV5kTGiqlq2"}, // VK_WEB_APP_ID
|
{ClientID: "6287487", ClientSecret: "QbYic1K3lEV5kTGiqlq2"}, // VK_WEB_APP_ID
|
||||||
{ClientID: "7879029", ClientSecret: "aR5NKGmm03GYrCiNKsaw"}, // VK_MVK_APP_ID
|
{ClientID: "7879029", ClientSecret: "aR5NKGmm03GYrCiNKsaw"}, // VK_MVK_APP_ID
|
||||||
|
|||||||
Reference in new issue
Block a user