tlsgate

TLS reverse proxy
git clone git://git.akobets.xyz/tlsgate
Log | Files | Refs | README | LICENSE

commit f41ee3fbc6714372bcea0df642e48503f68b7666
parent d2e8e8d2570583a210c5802214c4f0c35d7da2a1
Author: Artem Kobets <artem@akobets.xyz>
Date:   Sun, 13 Sep 2020 21:27:27 +0300

extremely important comments

Diffstat:
Mmain.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/main.c b/main.c @@ -59,6 +59,7 @@ serve(struct tls *ctx, int cfd, const char *server_host, const char *server_port // when checking POLLIN, also check POLLHUP while (poll(pfds, 2, REQUEST_TIMEOUT) > 0) { + // client->proxy->server if (pfds[0].revents & (pfds[0].events | POLLHUP)) { // read client->proxy while (1) { @@ -109,6 +110,7 @@ serve(struct tls *ctx, int cfd, const char *server_host, const char *server_port goto cleanup; } + // server->proxy->client if (pfds[1].revents & (pfds[1].events | POLLHUP)) { // read server->proxy while (1) {