aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2011-12-01 14:44:52 +1000
committerDavid Walter Seikel2011-12-01 14:44:52 +1000
commita7b45e65593c69e1aecfbc01d31bc3e403a42ac8 (patch)
tree2c3b6671ba2110c1b93bcb764b76ad90dbce4392
parentAvoid getting emails from cron. (diff)
downloadIGnoble-a7b45e65593c69e1aecfbc01d31bc3e403a42ac8.zip
IGnoble-a7b45e65593c69e1aecfbc01d31bc3e403a42ac8.tar.gz
IGnoble-a7b45e65593c69e1aecfbc01d31bc3e403a42ac8.tar.bz2
IGnoble-a7b45e65593c69e1aecfbc01d31bc3e403a42ac8.tar.xz
Use 0.0.0.0 as the default internal region IP, but stick with the externally looked up IP for the default external one.
-rwxr-xr-xcreate_region.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/create_region.sh b/create_region.sh
index 33257fd..0cd898d 100755
--- a/create_region.sh
+++ b/create_region.sh
@@ -30,19 +30,19 @@ then
30 echo "WARNING setting the Location to $LOCATION, this may not be what you want." 30 echo "WARNING setting the Location to $LOCATION, this may not be what you want."
31fi 31fi
32 32
33# Here we make use of an external IP finding service. Careful, it may move.
34# We later reuse the same IP for the default URL, coz that should work at least.
35if [ "x$IP" = "x" ] 33if [ "x$IP" = "x" ]
36then 34then
37 # 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP. 35 # 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP.
38 IP=$(wget -q http://automation.whatismyip.com/n09230945.asp -O -) 36 IP="0.0.0.0"
39 echo "WARNING setting the InternalAddress to $IP, this may not be what you want." 37 echo "WARNING setting the InternalAddress to $IP, this may not be what you want."
40 echo " 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP." 38# echo " 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP."
39# According to the OpenSim docs, 0.0.0.0 means to listen on all NICs the machine has, which should work fine.
41fi 40fi
42 41
42# Here we make use of an external IP finding service. Careful, it may move.
43if [ "x$URL" = "x" ] 43if [ "x$URL" = "x" ]
44then 44then
45 URL=$IP # URL is best (without the HTTP://), but IP (e.g. 88.109.81.55) works too. 45 URL=$(wget -q http://automation.whatismyip.com/n09230945.asp -O -) # URL is best (without the HTTP://), but IP (e.g. 88.109.81.55) works too.
46 echo "WARNING setting the ExternalHostName to $URL, this may not be what you want." 46 echo "WARNING setting the ExternalHostName to $URL, this may not be what you want."
47fi 47fi
48 48