Skip to content

Commit

Permalink
Automatically select port 9503 when password is set
Browse files Browse the repository at this point in the history
  • Loading branch information
victorpaleologue committed Feb 26, 2025
1 parent ce8e12b commit 2233752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/external_registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ int main(int argc, char** argv)
if (password.compare(no_password) != 0) {
#if LIBQI_VERSION >= 29
protocol = "tcps://";
nao_port = (nao_port == 9559) ? 9503 : nao_port;
#else
std::cout << BOLDRED
<< "No need to set a password"
<< "No need to set a password, ignored."
<< RESETCOLOR
<< std::endl;
#endif
Expand Down

0 comments on commit 2233752

Please sign in to comment.