mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 23:49:38 -05:00
MacOSX Bugfix: Commandline ip addresses were not initialised properly. added clear_sockaddr() call.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@758 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ef902d52cf
commit
38b1c02101
@ -713,6 +713,9 @@ int RsServer::StartupRetroShare(RsInit *config)
|
|||||||
{
|
{
|
||||||
struct sockaddr_in laddr;
|
struct sockaddr_in laddr;
|
||||||
|
|
||||||
|
/* clean sockaddr before setting values (MaxOSX) */
|
||||||
|
sockaddr_clear(&laddr);
|
||||||
|
|
||||||
laddr.sin_family = AF_INET;
|
laddr.sin_family = AF_INET;
|
||||||
laddr.sin_port = htons(config->port);
|
laddr.sin_port = htons(config->port);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user