Always retrieve the actual port used by the library. Even if specified the value might be
invalid (e.g. < 49152) or unavailable. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@88 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
parent
ae13c481a7
commit
14f72e1442
@ -1974,9 +1974,7 @@ TvDeviceStart( char *ip_address,
|
||||
ip_address = UpnpGetServerIpAddress( );
|
||||
}
|
||||
|
||||
if( port == 0 ) {
|
||||
port = UpnpGetServerPort( );
|
||||
}
|
||||
|
||||
SampleUtil_Print( "UPnP Initialized\n \t ipaddress= %s port = %d\n",
|
||||
ip_address, port );
|
||||
|
Loading…
Reference in New Issue
Block a user