diff options
-rwxr-xr-x | create_region.sh | 10 |
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." |
31 | fi | 31 | fi |
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. | ||
35 | if [ "x$IP" = "x" ] | 33 | if [ "x$IP" = "x" ] |
36 | then | 34 | then |
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. | ||
41 | fi | 40 | fi |
42 | 41 | ||
42 | # Here we make use of an external IP finding service. Careful, it may move. | ||
43 | if [ "x$URL" = "x" ] | 43 | if [ "x$URL" = "x" ] |
44 | then | 44 | then |
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." |
47 | fi | 47 | fi |
48 | 48 | ||