diff options
author | Omar Polo <op@omarpolo.com> | 2021-12-29 20:36:54 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-12-29 20:36:54 +0000 |
commit | 72b033ef18ae3f82922f6f11ce0f5194e95f667d (patch) | |
tree | 5f06b0c70851aa17f17251579adb65a66a8081ca /gmid.c | |
parent | 054387bb26e75cef12e8dc0f531e7ee42614edd7 (diff) |
add ability to proxy requests
Add to gmid the ability to forwad a request to another gemini server and
thus acting like a reverse proxy. The current syntax for the config
file is
server "example.com" {
...
proxy relay-to host:port
}
Further options (like the use of custom certificates) are planned.
cf. github issue #7
Diffstat (limited to 'gmid.c')
-rw-r--r-- | gmid.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -302,6 +302,8 @@ free_config(void) free((char*)l->block_fmt); free((char*)l->dir); + free(l->proxy_host); + if (l->dirfd != -1) close(l->dirfd); |