From bcc93c0d5bf7e6ad02aa357ef44f167b4e6aae2d Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 16 Jul 2007 21:23:11 +0000 Subject: * SimpleApp's IP address is slightly less hard coded (now reading from a hard coded var vs lots of use of "127.0.0.1") --- OpenSim/Region/Examples/SimpleApp/Program.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs index 8ff2b77..51074d6 100644 --- a/OpenSim/Region/Examples/SimpleApp/Program.cs +++ b/OpenSim/Region/Examples/SimpleApp/Program.cs @@ -40,6 +40,8 @@ namespace SimpleApp { base.StartUp(); + string ipaddr = "127.0.0.1"; + MainLog.Instance = m_log; m_circuitManager = new AuthenticateSessionsBase(); @@ -47,14 +49,14 @@ namespace SimpleApp InventoryCache inventoryCache = new InventoryCache(); LocalAssetServer assetServer = new LocalAssetServer(); - assetServer.SetServerInfo("http://127.0.0.1:8003/", ""); + assetServer.SetServerInfo("http://" + ipaddr + ":8003/", ""); AssetCache assetCache = new AssetCache(assetServer); ScenePresence.LoadTextureFile("avatar-texture.dat"); ScenePresence.PhysicsEngineFlying = true; - IPEndPoint internalEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9000); + IPEndPoint internalEndPoint = new IPEndPoint(IPAddress.Parse(ipaddr), 9000); UDPServer udpServer = new UDPServer(internalEndPoint.Port, assetCache, inventoryCache, m_log, m_circuitManager); PacketServer packetServer = new PacketServer(udpServer); @@ -63,7 +65,7 @@ namespace SimpleApp CommunicationsLocal communicationsManager = new CommunicationsLocal(m_networkServersInfo, httpServer); - RegionInfo regionInfo = new RegionInfo(1000, 1000, internalEndPoint, "127.0.0.1"); + RegionInfo regionInfo = new RegionInfo(1000, 1000, internalEndPoint, ipaddr); OpenSim.Region.Environment.StorageManager storeMan = new OpenSim.Region.Environment.StorageManager("OpenSim.DataStore.NullStorage.dll", "simpleapp.yap", "simpleapp"); -- cgit v1.1