Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't force IPv4 use #39

Closed
wants to merge 1 commit into from
Closed

Don't force IPv4 use #39

wants to merge 1 commit into from

Conversation

uhliarik
Copy link

@uhliarik uhliarik commented Feb 1, 2023

Code in apr_memcache.c is forcing to use IPv4 by setting protocol family to APR_INET instead of APR_UNSPEC.

@uhliarik uhliarik changed the title Don't force IPv6 use Don't force IPv4 use Feb 1, 2023
@@ -328,7 +328,7 @@ mc_conn_construct(void **conn_, void *params, apr_pool_t *pool)
apr_pool_t *tp;
apr_memcache_server_t *ms = params;
#if APR_HAVE_SOCKADDR_UN
apr_int32_t family = ms->host[0] != '/' ? APR_INET : APR_UNIX;
apr_int32_t family = ms->host[0] != '/' ? APR_UNSPEC : APR_UNIX;
#else
apr_int32_t family = APR_INET;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the family = APR_INET lines change in both places too?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It definitely should!

Code in apr_memcache.c is forcing to use IPv4 by setting protocol family
to APR_INET instead of APR_UNSPEC.
@asfgit asfgit closed this in 828d644 Feb 3, 2023
@notroj
Copy link
Contributor

notroj commented Feb 3, 2023

Thanks @uhliarik !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants