[BUG] build failed on CONFIG_HAP_LINUX_TPROXY without CONFIG_HAP_CTTPROXY
changed #ifdef
This commit is contained in:
parent
e8c66afd41
commit
4864c35209
@ -204,7 +204,7 @@ struct proxy {
|
|||||||
int conn_retries; /* maximum number of connect retries */
|
int conn_retries; /* maximum number of connect retries */
|
||||||
int cap; /* supported capabilities (PR_CAP_*) */
|
int cap; /* supported capabilities (PR_CAP_*) */
|
||||||
struct sockaddr_in source_addr; /* the address to which we want to bind for connect() */
|
struct sockaddr_in source_addr; /* the address to which we want to bind for connect() */
|
||||||
#ifdef CONFIG_HAP_CTTPROXY
|
#if defined(CONFIG_HAP_CTTPROXY) || defined(CONFIG_HAP_LINUX_TPROXY)
|
||||||
struct sockaddr_in tproxy_addr; /* non-local address we want to bind to for connect() */
|
struct sockaddr_in tproxy_addr; /* non-local address we want to bind to for connect() */
|
||||||
#endif
|
#endif
|
||||||
struct proxy *next;
|
struct proxy *next;
|
||||||
|
@ -85,7 +85,7 @@ struct server {
|
|||||||
|
|
||||||
struct sockaddr_in addr; /* the address to connect to */
|
struct sockaddr_in addr; /* the address to connect to */
|
||||||
struct sockaddr_in source_addr; /* the address to which we want to bind for connect() */
|
struct sockaddr_in source_addr; /* the address to which we want to bind for connect() */
|
||||||
#ifdef CONFIG_HAP_CTTPROXY
|
#if defined(CONFIG_HAP_CTTPROXY) || defined(CONFIG_HAP_LINUX_TPROXY)
|
||||||
struct sockaddr_in tproxy_addr; /* non-local address we want to bind to for connect() */
|
struct sockaddr_in tproxy_addr; /* non-local address we want to bind to for connect() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user