diff options
author | Omar Polo <op@omarpolo.com> | 2024-08-03 10:27:07 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-08-03 10:27:07 +0000 |
commit | 040f7aaca1032511212b4fbad28717dcfadc3d49 (patch) | |
tree | c7d45134b16420b998f9b4fd78d060972b5a9549 /gmid.h | |
parent | 9360fb1a552b13b24f0b21bfd7146460e87341e0 (diff) |
add support for using the proxy protocol v1 when proxying too
This is symmetrical to the support for *incoming* requests. The
new regress case uses this to proxy to itself using the proxy-protocol
v1.
Fixes https://github.com/omar-polo/gmid/issues/31
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, 2021, 2022, 2023 Omar Polo <op@omarpolo.com> + * Copyright (c) 2020-2024 Omar Polo <op@omarpolo.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -168,6 +168,7 @@ struct proxy { size_t keylen; char *reqca_path; X509_STORE *reqca; + int proxy; /* use the proxy protocol */ TAILQ_ENTRY(proxy) proxies; }; |