mirror of
git://erdgeist.org/opentracker
synced 2025-01-11 15:30:07 +00:00
Make ot_try_bind local again. Also dont handle multi cast udp packets in opentracker.c, ot_livesync.c does it by itself.
This commit is contained in:
parent
01ea1648d8
commit
17724dde29
@ -202,8 +202,6 @@ static void server_mainloop( ) {
|
|||||||
handle_accept( i );
|
handle_accept( i );
|
||||||
else if( (int)cookie == FLAG_UDP )
|
else if( (int)cookie == FLAG_UDP )
|
||||||
handle_udp4( i );
|
handle_udp4( i );
|
||||||
else if( (int)cookie == FLAG_MCA )
|
|
||||||
handle_livesync(i);
|
|
||||||
else
|
else
|
||||||
handle_read( i );
|
handle_read( i );
|
||||||
}
|
}
|
||||||
@ -233,7 +231,7 @@ static void server_mainloop( ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) {
|
static int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) {
|
||||||
int64 s = proto == FLAG_TCP ? socket_tcp4( ) : socket_udp4();
|
int64 s = proto == FLAG_TCP ? socket_tcp4( ) : socket_udp4();
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user