/* remote supports XCLIENT, send it */
str = t_str_new(128);
str_append(str, "XCLIENT");
+ if (str_array_icase_find(client->proxy_xclient, "TTL"))
+ str_printfa(str, " TTL=%u", client->common.proxy_ttl - 1);
+ if (str_array_icase_find(client->proxy_xclient, "PORT"))
+ str_printfa(str, " PORT=%u", client->common.remote_port);
if (str_array_icase_find(client->proxy_xclient, "ADDR")) {
str_append(str, " ADDR=");
str_append(str, net_ip2addr(&client->common.ip));
}
- if (str_array_icase_find(client->proxy_xclient, "PORT"))
- str_printfa(str, " PORT=%u", client->common.remote_port);
if (str_array_icase_find(client->proxy_xclient, "SESSION")) {
str_append(str, " SESSION=");
smtp_xtext_encode_cstr(
str, client_get_session_id(&client->common));
}
- if (str_array_icase_find(client->proxy_xclient, "TTL"))
- str_printfa(str, " TTL=%u", client->common.proxy_ttl - 1);
if (str_array_icase_find(client->proxy_xclient, "FORWARD")) {
buffer_t *fwd = proxy_compose_xclient_forward(client);