MINOR: stream: Use backend stream-interface dst address instead of target_addr
target_addr field in the stream structure is removed. The backend
stream-interface destination address is now used.
diff --git a/src/http_client.c b/src/http_client.c
index 4d1ae05..7756e82 100644
--- a/src/http_client.c
+++ b/src/http_client.c
@@ -372,7 +372,7 @@
goto out_free_appctx;
}
- if (!sockaddr_alloc(&s->target_addr, &hc->dst, sizeof(hc->dst))) {
+ if (!sockaddr_alloc(&s->si[1].dst, &hc->dst, sizeof(hc->dst))) {
ha_alert("httpclient: Failed to initialize stream in %s:%d.\n", __FUNCTION__, __LINE__);
goto out_free_stream;
}