Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/connection/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ class Connection extends EventEmitter {
const data = new BufferWriter();
data.writeByte(Constants.CommandCodes.SendLogin);
data.writeBytes(publicKey); // 32 bytes - id of repeater or room server
data.writeString(password); // password is remainder of frame, max 15 characters
// Empty password = read-only ACL (0 bytes, matches official Android). Non-empty uses writeString.
if (password.length > 0) {
data.writeString(password); // password is remainder of frame, max 15 characters
}
await this.sendToRadioFrame(data.toBytes());
}

Expand Down