src/proxy.c

changeset 2266
bebc59d79f1b
parent 2229
355ebbe18fe0
child 2300
06a3c10f4918
equal deleted inserted replaced
2265:e98463b04393 2266:bebc59d79f1b
247 g_free(phb); 247 g_free(phb);
248 return; 248 return;
249 } 249 }
250 fcntl(source, F_SETFL, 0); 250 fcntl(source, F_SETFL, 0);
251 251
252 g_snprintf(cmd, sizeof(cmd), "CONNECT %s:%d HTTP/1.1\r\n", phb->host, phb->port); 252 g_snprintf(cmd, sizeof(cmd), "CONNECT %s:%d HTTP/1.1\r\nHost = %s:%d\r\n", phb->host, phb->port, phb->host, phb->port);
253 if (send(source, cmd, strlen(cmd), 0) < 0) { 253 if (send(source, cmd, strlen(cmd), 0) < 0) {
254 close(source); 254 close(source);
255 phb->func(phb->data, -1, GAIM_INPUT_READ); 255 phb->func(phb->data, -1, GAIM_INPUT_READ);
256 g_free(phb->host); 256 g_free(phb->host);
257 g_free(phb); 257 g_free(phb);

mercurial