1 | #include "my_net.h" |
2 | |
3 | struct proxy_peer_info |
4 | { |
5 | struct sockaddr_storage peer_addr; |
6 | int port; |
7 | bool is_local_command; |
8 | }; |
9 | |
10 | extern bool (NET *net); |
11 | extern int (NET *net, proxy_peer_info *peer_info); |
12 | extern bool is_proxy_protocol_allowed(const sockaddr *remote_addr); |
13 | |
14 | extern int init_proxy_protocol_networks(const char *spec); |
15 | extern void destroy_proxy_protocol_networks(); |
16 | |
17 | extern int set_proxy_protocol_networks(const char *spec); |
18 | extern bool proxy_protocol_networks_valid(const char *spec); |
19 | |
20 | |