Changeset 88
- Timestamp:
- Jul 19, 2014, 2:17:47 PM (10 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/NamePatcher/NamePatcher.userprefs
r86 r88 3 3 <MonoDevelop.Ide.Workbench ActiveDocument="NamePatcher.cs"> 4 4 <Files> 5 <File FileName="NamePatcher.cs" Line=" 98" Column="5" />5 <File FileName="NamePatcher.cs" Line="175" Column="34" /> 6 6 <File FileName="NameNormalizer.cs" Line="188" Column="1" /> 7 7 </Files> -
scripts/usr/local/lib/7dtd/common.sh
r80 r88 188 188 local TEL_PORT=$(getConfigValue $1 TelnetPort) 189 189 local TEL_PASS=$(getConfigValue $1 TelnetPassword) 190 if [ "$TEL_ENABLED" = "true" ] && [ -n "$TEL_PASS" ]; then190 if [ "$TEL_ENABLED" = "true" ]; then 191 191 local TEMPFILE=$(mktemp) 192 192 rm -f $TEMPFILE … … 195 195 nc 127.0.0.1 $TEL_PORT <&3 & 196 196 local NCPID=$! 197 printf "$TEL_PASS\n$2\n" >&3 197 if [ -n "$TEL_PASS" ]; then 198 printf "$TEL_PASS\n$2\n" >&3 199 else 200 printf "$2\n" >&3 201 fi 198 202 sleep ${3:-1} 199 203 printf "exit\n" >&3 … … 203 207 rm -f $TEMPFILE 204 208 else 205 echo "Telnet not enabled or no password set."209 echo "Telnet not enabled." 206 210 fi 207 211 } -
scripts/usr/local/lib/7dtd/serverconfig.sh
r67 r88 364 364 serverconfig_TelnetPassword_Type() { 365 365 echo "string" 366 }367 serverconfig_TelnetPassword_Validate() {368 if [ -z $1 ]; then369 echo "0"370 else371 echo "1"372 fi373 }374 serverconfig_TelnetPassword_ErrorMessage() {375 echo "Telnet must have a password set to function."376 366 } 377 367 … … 740 730 echo 741 731 echo "NOTE: Telnet will always be enabled for management purposes!" 742 echo "Make sure you block external access to this port!" 732 echo "Make sure you block external access to this port or set no password" 733 echo "so the server will only listen on the loopback interface!" 743 734 echo 744 735 fi
Note:
See TracChangeset
for help on using the changeset viewer.