Fix a problem where the protocol file could not be found when using the generic protocol over TCP/IP.
This commit is contained in:
parent
009afccb37
commit
dddc4d4b16
1 changed files with 3 additions and 1 deletions
|
@ -170,7 +170,9 @@ FGIO::parse_port_config( const string& config )
|
||||||
FGRUL *rul = new FGRUL;
|
FGRUL *rul = new FGRUL;
|
||||||
io = rul;
|
io = rul;
|
||||||
} else if ( protocol == "generic" ) {
|
} 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;
|
io = generic;
|
||||||
|
|
||||||
#ifdef FG_MPLAYER_AS
|
#ifdef FG_MPLAYER_AS
|
||||||
|
|
Loading…
Reference in a new issue