diff --git a/ot_livesync.c b/ot_livesync.c index 2778071..29f1950 100644 --- a/ot_livesync.c +++ b/ot_livesync.c @@ -375,8 +375,10 @@ static void * livesync_worker( void * args ) { (void)args; + memcpy( in_ip, V4mappedprefix, sizeof( V4mappedprefix ) ); + while( 1 ) { - datalen = socket_recv4(g_socket_in, (char*)g_inbuffer, LIVESYNC_INCOMING_BUFFSIZE, (char*)in_ip, &in_port); + datalen = socket_recv4(g_socket_in, (char*)g_inbuffer, LIVESYNC_INCOMING_BUFFSIZE, 12+(char*)in_ip, &in_port); /* Expect at least tracker id and packet type */ if( datalen <= (ssize_t)(sizeof( g_tracker_id ) + sizeof( uint32_t )) ) @@ -413,4 +415,4 @@ static void * livesync_worker( void * args ) { } #endif -const char *g_version_livesync_c = "$Source: /home/cvsroot/opentracker/ot_livesync.c,v $: $Revision: 1.15 $\n"; +const char *g_version_livesync_c = "$Source: /home/cvsroot/opentracker/ot_livesync.c,v $: $Revision: 1.16 $\n";