Ignore:
Timestamp:
2009-09-16T15:29:02+12:00 (15 years ago)
Author:
ak19
Message:

Brought up to date with the recent changes made to server.jar and related files, including the gsicontrol.sh for Linux, so that the address resolution method (hostname from IP, IP, localhost, 127.0.0.1) can be specified by the user in the GSI dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/gsicontrol.bat

    r20505 r20615  
    186186echo Found port %port%
    187187FOR /F "tokens=2 delims==" %%G IN ('findstr /R ^externalaccess %configfile%') do set connect=%%G
    188 if "%connect%" == "1" (set connect=yes) else (set connect=no)
     188
     189if "%connect%" == "1" set allowfrom="all"& goto portcon
     190FOR /F "tokens=2 delims==" %%G IN ('findstr /R ^host %configfile%') do set allowfrom=%%G
    189191
    190192:: Using CALL to jump to labels means we can return from them. BUT need to ensure
     
    197199set /p port=Enter port number to use:
    198200set /p connect=Allow external connections [yes/no]:
     201if "%connect%" == "yes" set allowfrom="all"& goto portcon
     202if "%connect%" == "y" set allowfrom="all"& goto portcon
     203
     204set /p allowfrom=Enter host (hostname, IP, localhost, 127.0.0.1) to use:
     205goto portcon
    199206
    200207:portcon
    201 if "%connect%" == "yes" set allowfrom="all"& goto portcon2
    202 if "%connect%" == "y" set allowfrom="all"& goto portcon2
    203 set allowfrom="127.0.0.1"
    204 goto portcon2
    205 
    206 :portcon2
    207208if "%port%" == "" (
    208209   echo Done
     
    237238:exit
    238239endlocal
    239 
    240 
    241 
Note: See TracChangeset for help on using the changeset viewer.