mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04: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
1 changed files with 3 additions and 0 deletions
|
@ -713,6 +713,9 @@ int RsServer::StartupRetroShare(RsInit *config)
|
|||
{
|
||||
struct sockaddr_in laddr;
|
||||
|
||||
/* clean sockaddr before setting values (MaxOSX) */
|
||||
sockaddr_clear(&laddr);
|
||||
|
||||
laddr.sin_family = AF_INET;
|
||||
laddr.sin_port = htons(config->port);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue