Changeset 6837


Ignore:
Timestamp:
Nov 5, 2009, 11:05:18 AM (15 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/addressing/ip_address.hpp

    r5406 r6837  
    3030
    3131        ip_address(const ip_address& copy) : addr(copy.addr) {
    32 
    3332        }
    3433
     
    109108        /// convert address to a string that can be used to reconstruct the address
    110109        std::string to_string() const {
     110                if (addr.is_v6() && addr.to_v6().is_v4_compatible())
     111                        return addr.to_v4().to_string();
    111112                return addr.to_string();
    112113        }
Note: See TracChangeset for help on using the changeset viewer.