Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
fix connection mode
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Jan 11, 2018
1 parent d2434c5 commit 1fcf0e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apiclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@
function getServerAddress(server, mode) {

switch (mode) {
case 0:
case 'local':
return server.LocalAddress;
case 2:
case 'manual':
return server.ManualAddress;
case 1:
case 'remote':
return server.RemoteAddress;
default:
Expand Down
3 changes: 2 additions & 1 deletion connectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,8 @@
localUser: localUser,
name: connectUser ? connectUser.Name : (localUser ? localUser.Name : null),
imageUrl: image.url,
supportsImageParams: image.supportsParams
supportsImageParams: image.supportsParams,
connectUser: connectUser
});
}

Expand Down

0 comments on commit 1fcf0e2

Please sign in to comment.