X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=0a366514656faf3eb1d51e8fb06abe0f29e2b073;hb=05e94adc1a717e85ba5b775468c3c9e2c8a26034;hp=a55f095bd7aa775bb17b5539de7f8c62eb2a668b;hpb=191c5db0e914f9774413da50bb1963ecf22b2f5c;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index a55f095..0a36651 100644 --- a/client/client.c +++ b/client/client.c @@ -702,10 +702,7 @@ static int session_connect_base(const char *arg, const char **basep) strncpy(type_and_host, arg, sizeof(type_and_host)-1); type_and_host[sizeof(type_and_host)-1] = '\0'; - if (yazProxy) - conn = cs_create_host(yazProxy, 1, &add); - else - conn = cs_create_host(arg, 1, &add); + conn = cs_create_host_proxy(arg, 1, &add, yazProxy); if (!conn) { printf("Could not resolve address %s\n", arg);