mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Fix OSX compilation.
This commit is contained in:
parent
db8259c230
commit
c00c45fee1
@ -1391,6 +1391,7 @@ get_pf_socket(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(TRANS_NETFILTER) || defined(TRANS_PF)
|
||||||
/** Try fill in the address of <b>req</b> from the socket configured
|
/** Try fill in the address of <b>req</b> from the socket configured
|
||||||
* with <b>conn</b>. */
|
* with <b>conn</b>. */
|
||||||
static int
|
static int
|
||||||
@ -1426,7 +1427,9 @@ destination_from_socket(entry_connection_t *conn, socks_request_t *req)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef TRANS_PF
|
||||||
static int
|
static int
|
||||||
destination_from_pf(entry_connection_t *conn, socks_request_t *req)
|
destination_from_pf(entry_connection_t *conn, socks_request_t *req)
|
||||||
{
|
{
|
||||||
@ -1507,6 +1510,7 @@ destination_from_pf(entry_connection_t *conn, socks_request_t *req)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Fetch the original destination address and port from a
|
/** Fetch the original destination address and port from a
|
||||||
* system-specific interface and put them into a
|
* system-specific interface and put them into a
|
||||||
|
Loading…
Reference in New Issue
Block a user