mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-28 15:13:52 +00:00
don't setup MDP named socket on iOS
This commit is contained in:
parent
951cc90bde
commit
2ec4744460
@ -50,6 +50,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#include <dirent.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef __APPLE__
|
||||
#include "TargetConditionals.h"
|
||||
#endif
|
||||
|
||||
#include "serval.h"
|
||||
#include "conf.h"
|
||||
#include "str.h"
|
||||
@ -209,7 +213,7 @@ static int mdp_bind_socket(const char *name)
|
||||
{
|
||||
struct socket_address addr;
|
||||
int sock;
|
||||
|
||||
|
||||
if (make_local_sockaddr(&addr, "%s", name) == -1)
|
||||
return -1;
|
||||
if ((sock = esocket(addr.addr.sa_family, SOCK_DGRAM, 0)) == -1)
|
||||
@ -252,6 +256,10 @@ static void overlay_mdp_setup_sockets()
|
||||
if (serverMode == SERVER_NOT_RUNNING)
|
||||
return;
|
||||
|
||||
#ifdef TARGET_OS_IPHONE
|
||||
return;
|
||||
#endif
|
||||
|
||||
/* Delete stale socket files from instance directory. */
|
||||
overlay_mdp_clean_socket_files();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user