diff options
author | cbdev <cb@cbcdn.com> | 2019-09-18 00:57:35 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-09-18 00:57:35 +0200 |
commit | cd59a560d8b182ce50ea1edae1c0f2a0a89e76c0 (patch) | |
tree | c33305395b9d9c6b7bb4dbcfa2b5e89af80b1f69 /backends/maweb.c | |
parent | 262210090bed5967157ce67dc1b52d43ba9cbdb9 (diff) | |
download | midimonster-cd59a560d8b182ce50ea1edae1c0f2a0a89e76c0.tar.gz midimonster-cd59a560d8b182ce50ea1edae1c0f2a0a89e76c0.tar.bz2 midimonster-cd59a560d8b182ce50ea1edae1c0f2a0a89e76c0.zip |
Fix winmidi feedback connection
Diffstat (limited to 'backends/maweb.c')
-rw-r--r-- | backends/maweb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/maweb.c b/backends/maweb.c index 88f7b9a..c88ca8c 100644 --- a/backends/maweb.c +++ b/backends/maweb.c @@ -591,7 +591,7 @@ static int maweb_handle_message(instance* inst, char* payload, size_t payload_le fprintf(stderr, "maweb sending user credentials\n"); snprintf(xmit_buffer, sizeof(xmit_buffer), "{\"requestType\":\"login\",\"username\":\"%s\",\"password\":\"%s\",\"session\":%" PRIu64 "}", - (data->peer_type == peer_dot2) ? "remote" : data->user, data->pass, data->session); + (data->peer_type == peer_dot2) ? "remote" : data->user, data->pass ? data->pass : MAWEB_DEFAULT_PASSWORD, data->session); maweb_send_frame(inst, ws_text, (uint8_t*) xmit_buffer, strlen(xmit_buffer)); } if(json_obj(payload, "status") && json_obj(payload, "appType")){ |