Fixed port deformation while sending handshake
This commit is contained in:
parent
8b07676a37
commit
f1f435d041
|
@ -1,5 +1,9 @@
|
||||||
D1X-Rebirth Changelog
|
D1X-Rebirth Changelog
|
||||||
|
|
||||||
|
20070112
|
||||||
|
--------
|
||||||
|
main/ip_base.cpp: Fixed port deformation while sending handshake
|
||||||
|
|
||||||
20071008
|
20071008
|
||||||
--------
|
--------
|
||||||
main/game.c, main/inferno.c, main/object.c, main/playsave.c: Improvements for Cockpit mode save; Fixed -pilot switch
|
main/game.c, main/inferno.c, main/object.c, main/playsave.c: Improvements for Cockpit mode save; Fixed -pilot switch
|
||||||
|
|
|
@ -137,6 +137,10 @@ void ip_peer::send_handshake(ip_handshake_base*hsb){
|
||||||
memcpy(buf+s,D1Xcfgid,4);s+=4;
|
memcpy(buf+s,D1Xcfgid,4);s+=4;
|
||||||
s+=hsb->fillbuf(buf+s);
|
s+=hsb->fillbuf(buf+s);
|
||||||
assert(s<256);
|
assert(s<256);
|
||||||
|
|
||||||
|
arch_ip_close_socket();
|
||||||
|
arch_ip_open_socket(UDP_BASEPORT+GameArg.MplIpBasePort);
|
||||||
|
|
||||||
if (addr.goodaddr==NULL){
|
if (addr.goodaddr==NULL){
|
||||||
ip_addr_list::iterator i;
|
ip_addr_list::iterator i;
|
||||||
for (i=addr.begin();i!=addr.end();i++)
|
for (i=addr.begin();i!=addr.end();i++)
|
||||||
|
|
Loading…
Reference in a new issue