From dddc4d4b16912622ce41a9d54640fa196feab722 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 25 Jul 2004 16:38:33 +0000 Subject: [PATCH] Fix a problem where the protocol file could not be found when using the generic protocol over TCP/IP. --- src/Main/fg_io.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Main/fg_io.cxx b/src/Main/fg_io.cxx index 55c84f752..2e06e16b9 100644 --- a/src/Main/fg_io.cxx +++ b/src/Main/fg_io.cxx @@ -170,7 +170,9 @@ FGIO::parse_port_config( const string& config ) FGRUL *rul = new FGRUL; io = rul; } else if ( protocol == "generic" ) { - FGGeneric *generic = new FGGeneric( tokens[6] ); + int n = 6; + if (tokens[1] == "socket") n++; + FGGeneric *generic = new FGGeneric( tokens[n] ); io = generic; #ifdef FG_MPLAYER_AS