remove some wrong characters.

This commit is contained in:
fengbojiang 2023-03-31 10:23:48 +08:00
parent efd35b83ad
commit c0cab32e5f
1 changed files with 6 additions and 5 deletions

View File

@ -40,7 +40,7 @@ ngx_event_connect_peer(ngx_peer_connection_t *pc)
#if (NGX_HAVE_FSTACK)
/*
We use a creation flags created by fstack's adaptable layer to
We use a creation flags created by fstack's adaptable layer to
to explicitly call the needed socket() function.
*/
if (!pc->belong_to_host) {
@ -209,7 +209,8 @@ ngx_event_connect_peer(ngx_peer_connection_t *pc)
if (ngx_event_actions.add_conn) {
#else
if (ngx_add_conn) {
#endif
#endif
if (ngx_add_conn(c) == NGX_ERROR) {
goto failed;
}
@ -377,7 +378,7 @@ ngx_event_connect_set_transparent(ngx_peer_connection_t *pc, ngx_socket_t s)
FreeBSD define IP_BINDANY in freebsd/netinet/in.h
Fstack should only support IP_BINDANY.
****/
#define IP_BINDANY 24
#define IP_BINDANY 24
if (setsockopt(s, IPPROTO_IP, IP_BINDANY,
(const void *) &value, sizeof(int)) == -1)
{
@ -385,8 +386,8 @@ ngx_event_connect_set_transparent(ngx_peer_connection_t *pc, ngx_socket_t s)
"setsockopt(IP_BINDANY) failed");
return NGX_ERROR;
}
#elif defined(IP_TRANSPARENT)
#elif defined(IP_TRANSPARENT)
if (setsockopt(s, IPPROTO_IP, IP_TRANSPARENT,
(const void *) &value, sizeof(int)) == -1)
{