~ubuntu-branches/ubuntu/utopic/linuxdcpp/utopic

« back to all changes in this revision

Viewing changes to client/NmdcHub.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2007-09-24 00:35:20 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070924003520-793fzp01xwgklphn
Tags: 1.0.0-1
* Final 1.0.0 release ! 
* Added Homepage: to debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
 
249
249
                // Filter own searches
250
250
                if(ClientManager::getInstance()->isActive()) {
251
 
                        if(seeker == (ClientManager::getInstance()->getCachedIp() + ":" + Util::toString(SearchManager::getInstance()->getPort()))) {
 
251
                        if(seeker == (getLocalIp() + ":" + Util::toString(SearchManager::getInstance()->getPort()))) {
252
252
                                return;
253
253
                        }
254
254
                } else {
820
820
        int chars = 0;
821
821
        size_t BUF_SIZE;
822
822
        if(ClientManager::getInstance()->isActive()) {
823
 
                string x = ClientManager::getInstance()->getCachedIp();
 
823
                string x = getLocalIp();
824
824
                BUF_SIZE = x.length() + aString.length() + 64;
825
825
                buf = new char[BUF_SIZE];
826
826
                chars = snprintf(buf, BUF_SIZE, "$Search %s:%d %c?%c?%s?%d?%s|", x.c_str(), (int)SearchManager::getInstance()->getPort(), c1, c2, Util::toString(aSize).c_str(), aFileType+1, tmp.c_str());