Skip to content

Fixed crash during connection with 'plaintext_login' option#106

Merged
jgoclawski merged 1 commit intomasterfrom
fix_plaintext_login
Mar 7, 2025
Merged

Fixed crash during connection with 'plaintext_login' option#106
jgoclawski merged 1 commit intomasterfrom
fix_plaintext_login

Conversation

@jgoclawski
Copy link
Member

Originally submitted in #94
I did a rebase and removed the encoding bit at the beginning of RouterOsApiPool. The bytes/string inconsistencies are frustrating, but since I don't know what exactly happens when non ASCII characters are used in login/password, I think it's safer to allow people to pass username and password as bytes as well and handle the potential encoding themselves. This code will accept bytes and use it as-is and accept string and encode it using the default encoding (utf-8).

@jgoclawski jgoclawski merged commit 9da9c53 into master Mar 7, 2025
4 checks passed
@jgoclawski jgoclawski deleted the fix_plaintext_login branch March 7, 2025 12:11
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.

1 participant