mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3-rpc_server: Added IPv6 support for epmapper.
Signed-off-by: Günther Deschner <gd@samba.org>
This commit is contained in:
parent
a955c53843
commit
794e0f5f0c
@ -64,6 +64,15 @@ static bool epmd_open_sockets(struct tevent_context *ev_ctx,
|
||||
const char *sock_ptr;
|
||||
char *sock_tok;
|
||||
|
||||
if (strequal(sock_addr, "0.0.0.0") ||
|
||||
strequal(sock_addr, "::")) {
|
||||
#if HAVE_IPV6
|
||||
sock_addr = "::";
|
||||
#else
|
||||
sock_addr = "0.0.0.0";
|
||||
#endif
|
||||
}
|
||||
|
||||
for (sock_ptr = sock_addr;
|
||||
next_token_talloc(talloc_tos(), &sock_ptr, &sock_tok, " \t,");
|
||||
) {
|
||||
|
@ -87,6 +87,15 @@ static uint16_t _open_sockets(struct tevent_context *ev_ctx,
|
||||
const char *sock_ptr;
|
||||
char *sock_tok;
|
||||
|
||||
if (strequal(sock_addr, "0.0.0.0") ||
|
||||
strequal(sock_addr, "::")) {
|
||||
#if HAVE_IPV6
|
||||
sock_addr = "::";
|
||||
#else
|
||||
sock_addr = "0.0.0.0";
|
||||
#endif
|
||||
}
|
||||
|
||||
for (sock_ptr = sock_addr;
|
||||
next_token_talloc(talloc_tos(), &sock_ptr, &sock_tok, " \t,");
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user