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

Changeset 4225


Ignore:
Timestamp:
Aug 11, 2009, 1:47:17 PM (8 years ago)
Author:
bless
Message:
  • fix for ticket #123, use plaion IPv4 addresses in NLIs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ntlp/trunk/src/routingtable.h

    r4210 r4225  
    343343  const char* get_state_name() const { return (state<rt_state_max) ? statestring[state] : "state variable invalid - internal error"; };
    344344
    345   void set_local_src(const hostaddress src) {
    346           //cout << "XXXYYY: " << src << endl;
     345  void set_local_src(const hostaddress& src) {
    347346        local_src = src.copy();
     347        // must use plain IPv4 if possible
     348        local_src->convert_to_ipv4();
    348349  }
    349350
     
    356357  /// saved NAT Traversal object
    357358  nattraversal* nattrav;
    358   ///
     359  /// translated NLI (external visible NLI i/f address)
    359360  nli* translated_nli;
    360361 
Note: See TracChangeset for help on using the changeset viewer.