Skip to content

Commit

Permalink
Fixed a bug related to issue #1322 (default port for HTTPS notificati…
Browse files Browse the repository at this point in the history
…ons is 443, not 80!
  • Loading branch information
kzangeli committed Feb 27, 2023
1 parent c16b91e commit dcb4aa6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/orionld/common/urlParse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ bool urlParse(char* url, char** protocolP, char** ipP, unsigned short* portP, ch
}
else
{
*portP = 80; // What should be the default port?
if (strcmp(*protocolP, "https") == 0)
*portP = 443;
else
*portP = 80;

rest = ip;
}

Expand Down

0 comments on commit dcb4aa6

Please sign in to comment.