diff options
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index b418de4..ee8596c 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -113,9 +113,8 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer WANT_SYNC_PARAM( | |||
113 | uint8_t *_ip = (uint8_t*)peer_dest; | 113 | uint8_t *_ip = (uint8_t*)peer_dest; |
114 | int i; | 114 | int i; |
115 | for( i=0;i<20;++i)printf("%02X",(*hash)[i]); | 115 | for( i=0;i<20;++i)printf("%02X",(*hash)[i]); |
116 | printf( " %d.%d.%d.%d:%d\t%d %02X ", _ip[0], _ip[1], _ip[2], _ip[3], OT_PEERTIME( peer_dest ), OT_PEERTIME( peer_dest ), OT_FLAG(peer_dest)); | 116 | if( g_this_peerid_len ) g_this_peerid_data[g_this_peerid_len] = 0; |
117 | if( g_this_peerid_len ) write( 1, g_this_peerid_data, g_this_peerid_len ); | 117 | printf( " %d.%d.%d.%d:%d\t%d %02X %s\n", _ip[0], _ip[1], _ip[2], _ip[3], OT_PEERTIME( peer_dest ), OT_PEERTIME( peer_dest ), OT_FLAG(peer_dest), g_this_peerid_data ? g_this_peerid_data : "-" ); |
118 | putchar(10); | ||
119 | } | 118 | } |
120 | #endif | 119 | #endif |
121 | 120 | ||