--- jit-1.1.5/jit/jit/server.cpp.patch-desc 2003-02-17 16:53:01 +0300 +++ jit-1.1.5/jit/jit/server.cpp 2003-03-23 02:58:27 +0300 @@ -482,26 +482,11 @@ /* DESC */ cur = c->getAboutInfo(); - { - unsigned int uh = c->getLanIP(); - - sprintf(buf,"IP: %d.%d.%d.%d:%d", (uh >> 24) & 0xff, (uh >> 16) & 0xff, - (uh >> 8) & 0xff, uh & 0xff,c->getLanPort()); - cur += ( string(buf) ); - - if(c->getExtIP() != c->getLanIP()) { - uh = c->getExtIP(); - sprintf(buf," / %d.%d.%d.%d:%d", (uh >> 24) & 0xff, (uh >> 16) & 0xff, - (uh >> 8) & 0xff, uh & 0xff,c->getExtPort()); - cur+=( string(buf) ); - } + if (cur.size()) { + xmlnode_insert_cdata(xmlnode_insert_tag(q,"DESC"), + it_convert_windows2utf8(p,cur.c_str()), (unsigned int)-1); } - cur+="\n"; - - xmlnode_insert_cdata(xmlnode_insert_tag(q,"DESC"), - it_convert_windows2utf8(p,cur.c_str()), (unsigned int)-1); - it_deliver(s->ti,jp->x); }