NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4227


Ignore:
Timestamp:
Aug 11, 2009, 1:51:51 PM (8 years ago)
Author:
bless
Message:
  • implemented show addresses as additional command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ntlp/trunk/src/GISTConsole.cpp

    r4210 r4227  
    736736    }
    737737    else
     738    if (*aa == "addresses")
     739    {
     740      out_buf = "# showing configured addresses:\n";
     741      AddressList& addresses= global_ntlpstarterthread_p->getStatemodule()->getParam().addresses;
     742      AddressList::addrlist_t *alist = addresses.get_addrs(AddressList::ConfiguredAddr_P);
     743      if (alist != 0) {
     744              AddressList::addrlist_t::iterator it;
     745              for (it = alist->begin(); it != alist->end(); it++) {
     746                      out_buf += it->get_ip_str();
     747                      out_buf += "\n";
     748              } // end for
     749      }
     750      delete alist;
     751    }
     752
     753    else
    738754    {
    739755      unknownarg= true;
Note: See TracChangeset for help on using the changeset viewer.