Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ int main ( int argc, char** argv )
strArgument ) )
{
strServerPublicIP = strArgument;
qInfo() << qUtf8Printable( QString( "- server public IP: %1" )
.arg( strServerPublicIP ) );
CommandLineOptions << "--serverpublicip";
continue;
}
Expand Down Expand Up @@ -576,6 +578,11 @@ int main ( int argc, char** argv )
qWarning() << "Mute my own signal in my personal mix is only supported in headless mode.";
}

if ( !strServerPublicIP.isEmpty() && ( strCentralServer.isEmpty() || bIsClient ) )
{
qWarning() << "Server Public IP will only take effect when registering a server with a central server.";
}

// per definition: if we are in "GUI" server mode and no central server
// address is given, we use the default central server address
if ( !bIsClient && bUseGUI && strCentralServer.isEmpty() )
Expand Down