mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-26 20:50:26 +00:00
Use /var/run/minissdpd.sock as default socketpath in connectToMiniSSDPD().
This commit is contained in:
parent
cffba15387
commit
f29b026f38
@ -137,6 +137,8 @@ connectToMiniSSDPD(const char * socketpath)
|
||||
perror("setsockopt");
|
||||
}
|
||||
#endif /* #ifdef MINIUPNPC_SET_SOCKET_TIMEOUT */
|
||||
if(!socketpath)
|
||||
socketpath = "/var/run/minissdpd.sock";
|
||||
addr.sun_family = AF_UNIX;
|
||||
strncpy(addr.sun_path, socketpath, sizeof(addr.sun_path));
|
||||
/* TODO : check if we need to handle the EINTR */
|
||||
|
Loading…
x
Reference in New Issue
Block a user