2010-06-08 19:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbsocket.c
! added missing code to duplicate IP6 address passed explicitly
to hb_socketResolveAddr() - thanks to Mindaugas for reporting
the problem
This commit is contained in:
@@ -16,6 +16,12 @@
|
||||
The license applies to all entries newer than 2009-04-28.
|
||||
*/
|
||||
|
||||
|
||||
2010-06-08 19:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/src/rtl/hbsocket.c
|
||||
! added missing code to duplicate IP6 address passed explicitly
|
||||
to hb_socketResolveAddr() - thanks to Mindaugas for reporting
|
||||
the problem
|
||||
2010-06-08 09:21 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
|
||||
+ contrib/hbide/resources/idepreferences.png
|
||||
+ Icon for "hbIDE Setup" option.
|
||||
|
||||
@@ -2802,6 +2802,16 @@ char * hb_socketResolveAddr( const char * szAddr, int af )
|
||||
#if defined( HB_HAS_INET_PTON )
|
||||
struct in6_addr sin;
|
||||
fTrans = inet_pton( AF_INET6, szAddr, &sin ) > 0;
|
||||
if( fTrans )
|
||||
{
|
||||
# if defined( HB_HAS_INET_NTOP )
|
||||
char buf[ INET6_ADDRSTRLEN ];
|
||||
szAddr = inet_ntop( AF_INET6, &sin, buf, sizeof( buf ) );
|
||||
#else
|
||||
int iTODO;
|
||||
# endif
|
||||
szResult = hb_strdup( szAddr );
|
||||
}
|
||||
#else
|
||||
int iTODO;
|
||||
fTrans = HB_FALSE;
|
||||
|
||||
Reference in New Issue
Block a user