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
				
			
		|  | @ -1602,7 +1602,7 @@ namespace Mist{ | |||
|       if (newUA && ((now - myConn.connTime()) >= uaDelay || !myConn) && UA.size()){ | ||||
|         std::string APIcall = "{\"tag_sessid\":{\"" + tmpEx.getSessId() + "\":" + JSON::string_escape("UA:"+UA) + "}}"; | ||||
|         Socket::UDPConnection uSock; | ||||
|         uSock.SetDestination("localhost", 4242); | ||||
|         uSock.SetDestination(UDP_API_HOST, UDP_API_PORT); | ||||
|         uSock.SendNow(APIcall); | ||||
|         newUA = false; | ||||
|       } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma