Skip to content

Commit db1387b

Browse files
Merge pull request #17 from yrutschle/main
correct API documentation
2 parents 415808a + 5fad046 commit db1387b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/proxy_protocol.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ uint8_t *pp2_create_healthcheck_hdr(uint16_t *pp2_hdr_len, int32_t *error);
191191

192192
/* Creates a PROXY protocol header considering the information inside the pp_info.
193193
*
194-
* version: 0 Create a v1 PROXY protocol header
195-
* 1 Create a v2 PROXY protocol header
194+
* version: 1 Create a v1 PROXY protocol header
195+
* 2 Create a v2 PROXY protocol header
196196
* pp_info Pointer to a filled pp_info_t structure whose information will be used for the creation of the PROXY protocol header
197197
* pp_hdr_len Pointer to a uint16_t where the length of the create PROXY protocol header will be set
198198
* error Pointer to a int32_t where the error value will be set
@@ -213,4 +213,4 @@ uint8_t *pp_create_hdr(uint8_t version, const pp_info_t *pp_info, uint16_t *pp_h
213213
*/
214214
int32_t pp_parse_hdr(uint8_t *buffer, uint32_t buffer_length, pp_info_t *pp_info);
215215

216-
#endif
216+
#endif

0 commit comments

Comments
 (0)