Skip to content

Commit

Permalink
RSDK-5032 - strip authentity of protocol string (#166)
Browse files Browse the repository at this point in the history
Co-authored-by: Maxim Pertsov <[email protected]>
  • Loading branch information
purplenicole730 and maximpertsov authored Sep 29, 2023
1 parent b3ffddc commit 8e7ea96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/robot/dial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ export const createRobotClient = async (
conf: DialConf
): Promise<RobotClient> => {
let client;
if (conf.authEntity) {
conf.authEntity = new URL(conf.authEntity).host;
}

if (conf.reconnectMaxAttempts && !isPosInt(conf.reconnectMaxAttempts)) {
throw new Error(
Expand Down

0 comments on commit 8e7ea96

Please sign in to comment.