search for: dict_connections

Displaying 2 results from an estimated 2 matches for "dict_connections".

2017 Aug 03
2
proxy-dict with tcp connection
...dir, "/"DEFAULT_DICT_SERVER_SOCKET_FNAME, NULL); @@ -784,7 +802,13 @@ client_dict_init(struct dict *driver, const char *uri, path = t_strconcat(set->base_dir, "/", t_strdup_until(uri, dest_uri), NULL); } - connection_init_client_unix(dict_connections, &dict->conn.conn, path); + if (port > 0) { + connection_init_client_ip(dict_connections, &dict->conn.conn, &ip, port); + } else { + connection_init_client_unix(dict_connections, &dict->conn.conn, path); + } dict->uri = i_strdup(dest_uri +...
2017 Aug 03
0
proxy-dict with tcp connection
..."DEFAULT_DICT_SERVER_SOCKET_FNAME, NULL); > @@ -784,7 +802,13 @@ client_dict_init(struct dict *driver, const char *uri, > path = t_strconcat(set->base_dir, "/", > t_strdup_until(uri, dest_uri), NULL); > } > - connection_init_client_unix(dict_connections, &dict->conn.conn, path); > + if (port > 0) { > + connection_init_client_ip(dict_connections, &dict->conn.conn, > &ip, port); > + } else { > + connection_init_client_unix(dict_connections, &dict->conn.conn, > path); > + } >...