Skip to content

Fixed crash during connection with 'plaintext_login' option#94

Closed
Njinx wants to merge 1 commit intosocialwifi:masterfrom
Njinx:master
Closed

Fixed crash during connection with 'plaintext_login' option#94
Njinx wants to merge 1 commit intosocialwifi:masterfrom
Njinx:master

Conversation

@Njinx
Copy link

@Njinx Njinx commented May 9, 2024

If 'plaintext_login' is enabled then the username and password will be .encode()'d twice in login(). This PR removes type ambiguity of the username and password in __init__() and consolidates the login() type casts.

I'm not very familiar with the RouterOS protocol but based on my testing the encoding of the username and password doesn't differ depending on whether 'plaintext_login' is used.

@jgoclawski
Copy link
Member

Thanks, merged in #106.

@jgoclawski jgoclawski closed this Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants