Skip to content

Commit c2693ae

Browse files
committed
Fix auth with ipv6
1 parent defe031 commit c2693ae

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

vk_api/vk_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,14 @@ def vk_login(self, captcha_sid=None, captcha_key=None):
111111
self.http.cookies.clear()
112112
response = self.http.post(url, values)
113113

114+
remixsid = None
115+
114116
if 'remixsid' in self.http.cookies:
115117
remixsid = self.http.cookies['remixsid']
118+
elif 'remixsid6' in self.http.cookies: # ipv6?
119+
remixsid = self.http.cookies['remixsid6']
120+
121+
if remixsid:
116122
self.settings['remixsid'] = remixsid
117123

118124
# Нужно для авторизации в API

0 commit comments

Comments
 (0)