--- lbbs/src/bbs_net.c 2005/03/21 17:10:51 1.2 +++ lbbs/src/bbs_net.c 2005/03/21 17:28:01 1.3 @@ -92,7 +92,7 @@ load_bbsnet_conf (const char *file_confi (item_count < MAXSTATION / 2 ? 'A' + item_count : 'a' + item_count); p_menuitem->name[1] = '\0'; sprintf (p_menuitem->text, "1;36m%c. %s", - p_menuitem->name[0], bbsnet_conf[item_count].host2); + p_menuitem->name[0], bbsnet_conf[item_count].host1); item_count++; } @@ -298,14 +298,6 @@ bbsnet_connect (int n) setsockopt (sock, IPPROTO_IP, IP_TOS, &tos, sizeof (int)); prints ("\033[1;31m连接成功!\033[m\n"); -/* - if (connect (sock, (struct sockaddr *) &sin, sizeof (struct sockaddr)) < 0) - { - log_error ("Socket connect failed\n"); - return -3; - } -*/ - FD_ZERO (&inputs); FD_SET (0, &inputs); FD_SET (sock, &inputs); @@ -403,7 +395,7 @@ bbsnet_selchange (int new_pos) moveto (20, 0); clrtoeol (); prints ("║\x1b[1m单位:\x1b[1;33m%-18s\x1b[m 站名:\x1b[1;33m%s\x1b[m", - bbsnet_conf[new_pos].host1, bbsnet_conf[new_pos].host2); + bbsnet_conf[new_pos].host2, bbsnet_conf[new_pos].host1); moveto (20, 79); prints ("║"); moveto (21, 0);