port-only accept value binds to 127.0.0.1, instead of the wildcard address

Poor Yorick <[email protected]>
Newsgroups gmane.network.stunnel.user
Message-ID <[email protected]>
The stunnel 6.45 documentation for "accept" states,

    "If no host specified, defaults to all IPv4 addresses for the local host."

In this case, stunnel actually binds to 127.0.0.1.  Indeed, inspection of the
relevant code paths reveals that addr_list->passive is never set to 1 in this
case.  To get stunnel to bind to all addresses, 0.0.0.0 must be explicitly
specified.

Furthermore, inspection of the code path for the "local" option reveals that
addr_list->passive is set to 1 in this case, which seems to be backwards: The
documentation for getaddrinfo states that AI_PASSIVE is ignored in this case.

The logic for these two cases seems to be reversed. 


-- 
Yorick

_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.