- Fixed Miniserver start when in an IPv4-only environment.
git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@374 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
parent
c60ab8eeac
commit
b503c89f78
@ -626,7 +626,7 @@ get_miniserver_sockets( MiniServerSockArray * out,
|
||||
// that we don't have an IPv4/IPv6 stack.
|
||||
listenfd4 = socket( AF_INET, SOCK_STREAM, 0 );
|
||||
listenfd6 = socket( AF_INET6, SOCK_STREAM, 0 );
|
||||
if (listenfd4 == INVALID_SOCKET || listenfd6 == INVALID_SOCKET) {
|
||||
if (listenfd4 == INVALID_SOCKET && listenfd6 == INVALID_SOCKET) {
|
||||
return UPNP_E_OUTOF_SOCKET;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user