return;
}
gaim_connection_update_progress(gc, "Connecting", 1, 3);
- if((data->fd = dc_connect((char *)gaim_account_get_string(act, "server", "localhost"), -1)) < 0)
+ if((data->fd = dc_connect((char *)gaim_account_get_string(act, "server", "localhost"))) < 0)
{
gaim_connection_error(gc, "Could not connect to server");
return;
GaimAccountOption *opt;
dc_init();
- opt = gaim_account_option_string_new("Server", "server", "localhost");
+ opt = gaim_account_option_string_new("Server", "server", "");
protinfo.protocol_options = g_list_append(protinfo.protocol_options, opt);
opt = gaim_account_option_int_new("Port", "port", -1);
protinfo.protocol_options = g_list_append(protinfo.protocol_options, opt);
static int connect(struct conduit *conduit)
{
struct data *data;
- char *host;
data = conduit->cdata;
if(inuse != NULL)
return(-1);
- if((host = getenv("DCSERVER")) == NULL)
- host = "localhost";
- if((data->fd = dc_connect(host, -1)) < 0)
+ if((data->fd = dc_connect(NULL)) < 0)
return(-1);
data->gdkread = gdk_input_add(data->fd, GDK_INPUT_READ, (void (*)(gpointer, int, GdkInputCondition))dcfdcb, conduit);
updatewrite(conduit);
void dcconnect(char *host)
{
- dcfd = dc_connect(host, -1);
+ dcfd = dc_connect(host);
if(dcfd < 0)
{
msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not connect:\n\n%s"), strerror(errno));
dc_init();
signal(SIGCHLD, SIG_IGN);
pubhubaddr = sstrdup("http://www.hublist.org/PublicHubList.xml.bz2");
- dcserver = sstrdup("localhost");
+ dcserver = sstrdup("");
if((pwent = getpwuid(getuid())) == NULL)
{
fprintf(stderr, "could not get your passwd data");
struct dc_intresp *ires;
dc_init();
- fd = dc_connect("localhost", -1);
+ fd = dc_connect(NULL);
done = 0;
while(!done)
{