mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-17 13:24:15 -05:00
fixed compile on ubuntu
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8079 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0017f246e8
commit
f498a8880a
@ -262,12 +262,12 @@ bool ApiServerMHD::configure(std::string docroot, uint16_t port, std::string bin
|
||||
}
|
||||
else*/ if(allow_from_all)
|
||||
{
|
||||
mListenAddr.sin_addr.S_un.S_addr = htonl(INADDR_ANY);
|
||||
mListenAddr.sin_addr.s_addr = htonl(INADDR_ANY);
|
||||
std::cerr << "ApiServerMHD::configure(): will serve the webinterface to ALL IP adresses." << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
mListenAddr.sin_addr.S_un.S_addr = htonl(INADDR_LOOPBACK);
|
||||
mListenAddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||
std::cerr << "ApiServerMHD::configure(): will serve the webinterface to LOCALHOST only." << std::endl;
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,10 @@
|
||||
#include <microhttpd.h>
|
||||
#include <string>
|
||||
|
||||
#ifndef WINDOWS_SYS
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#include "api/ApiServer.h"
|
||||
|
||||
namespace resource_api{
|
||||
|
Loading…
x
Reference in New Issue
Block a user