Added ability to override internal UDP API bound host/port
This commit is contained in:
parent
28db254d7b
commit
b35d56cd8f
4 changed files with 17 additions and 2 deletions
|
@ -383,7 +383,7 @@ int Controller::handleAPIConnection(Socket::Connection & conn){
|
|||
|
||||
void Controller::handleUDPAPI(void * np){
|
||||
Socket::UDPConnection uSock(true);
|
||||
if (!uSock.bind(4242, "localhost")){
|
||||
if (!uSock.bind(UDP_API_PORT, UDP_API_HOST)){
|
||||
FAIL_MSG("Could not open local API UDP socket - not all functionality will be available");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue