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

Changeset 4222


Ignore:
Timestamp:
Aug 11, 2009, 1:23:57 PM (8 years ago)
Author:
bless
Message:
  • fix for convert_to_ipv4(): was not executed for IPv6 addresses :-(
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protlib/trunk/src/address.cpp

    r4220 r4222  
    297297
    298298/** Convert the IP address to IPv4 if it is an IPv4 mapped address
     299 *  plain IPv4 and plain IPv6 addresses remain unchanged
    299300 */
    300301void hostaddress::convert_to_ipv4() {
    301         if (ipv4flag) {
     302        if (!ipv4flag) { // only for v6 addresses, v4 address remain unchanged
    302303                if (is_ip_unspec()) {
    303304                        // clear IP and set to IPv4
Note: See TracChangeset for help on using the changeset viewer.