From c6a8f6415eb7a49a9b9a00a8782515f72b7e9c06 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 18 Feb 2013 08:56:32 -0800 Subject: [PATCH] switch back to EC2 domain server for test --- interface/src/Agent.cpp | 3 ++- interface/src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/src/Agent.cpp b/interface/src/Agent.cpp index 78a6578b53..0e877d8424 100644 --- a/interface/src/Agent.cpp +++ b/interface/src/Agent.cpp @@ -20,7 +20,7 @@ struct AgentList { unsigned short public_port; char private_address[255]; unsigned short private_port; - char *goodAddress = NULL; + char *goodAddress; unsigned short goodPort; timeval pingStarted; int pingMsecs; @@ -120,6 +120,7 @@ int add_agent(char * address, unsigned short port, char *private_address, unsign agents[num_agents].agentType = agentType; strcpy(agents[num_agents].private_address, private_address); agents[num_agents].private_port = private_port; + agents[num_agents].goodAddress = NULL; std::cout << "Added Agent # " << num_agents << " with Address " << agents[num_agents].public_address << ":" << agents[num_agents].public_port << " T: " << agentType << " (" << agents[num_agents].private_address << ":" << agents[num_agents].private_port << ")\n"; diff --git a/interface/src/main.cpp b/interface/src/main.cpp index 51c2558ed8..a42c06d6c1 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -60,7 +60,7 @@ int simulate_on = 1; const int MAX_PACKET_SIZE = 1500; char DOMAIN_HOSTNAME[] = "highfidelity.below92.com"; -char DOMAIN_IP[100] = "192.168.1.47"; // IP Address will be used first if not empty string +char DOMAIN_IP[100] = ""; // IP Address will be used first if not empty string const int DOMAINSERVER_PORT = 40102; UDPSocket agentSocket(AGENT_UDP_PORT);