mirror of https://github.com/F-Stack/f-stack.git
remove some wrong characters.
This commit is contained in:
parent
efd35b83ad
commit
c0cab32e5f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue