Showing 1 changed files with 4 additions and 1 deletions
+4 -1
flightgear/fgfs_function
... ...
@@ -404,7 +404,10 @@ function fgfs () {
404 404
                     local mplist=$(mktemp --dry-run /dev/shm/XXXXXXXXX)
405 405
                     declare -A installed_model fgaddon_model unknown_model
406 406
                     local ac_name=
407
-                    telnet mpserver01.flightgear.org 5001 2>/dev/null > $mplist
407
+                    local MPSERVER=${MPSERVER:-mpserver01.flightgear.org}
408
+                    local MPPORT=${MPPORT:-5001}
409
+                    echo data from $MPSERVER:$MPPORT
410
+                    telnet $MPSERVER $MPPORT 2>/dev/null > $mplist
408 411
                     grep 'pilot(s) online' $mplist
409 412
                     echo
410 413
                     local IFS=$'\n'