diff --git a/include/haproxy/receiver-t.h b/include/haproxy/receiver-t.h index 2a52b472e..da40c15cd 100644 --- a/include/haproxy/receiver-t.h +++ b/include/haproxy/receiver-t.h @@ -47,6 +47,7 @@ struct receiver { int fd; /* handle we receive from (fd only for now) */ unsigned int flags; /* receiver options (RX_F_*) */ struct protocol *proto; /* protocol this receiver belongs to */ + struct rx_settings *settings; /* points to the settings used by this receiver */ struct list proto_list; /* list in the protocol header */ /* warning: this struct is huge, keep it at the bottom */ struct sockaddr_storage addr; /* the address the socket is bound to */ diff --git a/src/listener.c b/src/listener.c index 1a8b5ad65..ef9b7d012 100644 --- a/src/listener.c +++ b/src/listener.c @@ -563,7 +563,7 @@ int create_listeners(struct bind_conf *bc, const struct sockaddr_storage *ss, LIST_ADDQ(&bc->frontend->conf.listeners, &l->by_fe); LIST_ADDQ(&bc->listeners, &l->by_bind); l->bind_conf = bc; - + l->rx.settings = &bc->settings; l->rx.fd = fd; memcpy(&l->rx.addr, ss, sizeof(*ss)); MT_LIST_INIT(&l->wait_queue);