VirtualBox

儲存庫 vbox 的更動 67634


忽略:
時間撮記:
2017-6-27 上午10:46:55 (7 年 以前)
作者:
vboxsync
訊息:

Main/HostNetworkInterfaceImpl: Restore all-zeroes (any) IPv6 address
checks lost in r116320. GUI expressly checks for it and forbids it,
so we end up with providing GUI with the default it considers invalid.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp

    r67633 r67634  
    168168        m.realNetworkMask = m.networkMask = info.IPNetMask.u;
    169169        m.dhcpEnabled = info.bDhcpEnabled;
    170         m.realIPV6Address = m.IPV6Address = Bstr(Utf8StrFmt("%RTnaipv6", &info.IPv6Address));
     170        if (info.IPv6Address.s.Lo || info.IPv6Address.s.Hi)
     171            m.realIPV6Address = m.IPV6Address = Bstr(Utf8StrFmt("%RTnaipv6", &info.IPv6Address));
     172        else
     173            m.realIPV6Address = m.IPV6Address = Bstr("");
    171174        RTNetMaskToPrefixIPv6(&info.IPv6NetMask, &iPrefixIPv6);
    172175        m.realIPV6PrefixLength = m.IPV6NetworkMaskPrefixLength = iPrefixIPv6;
     
    227230    m.realIPAddress = m.IPAddress = pIf->IPAddress.u;
    228231    m.realNetworkMask = m.networkMask = pIf->IPNetMask.u;
    229     m.realIPV6Address = m.IPV6Address = Bstr(Utf8StrFmt("%RTnaipv6", &pIf->IPv6Address));
     232    if (pIf->IPv6Address.s.Lo || pIf->IPv6Address.s.Hi)
     233        m.realIPV6Address = m.IPV6Address = Bstr(Utf8StrFmt("%RTnaipv6", &pIf->IPv6Address));
     234    else
     235        m.realIPV6Address = m.IPV6Address = Bstr("");
    230236    RTNetMaskToPrefixIPv6(&pIf->IPv6NetMask, &iPrefixIPv6);
    231237    m.realIPV6PrefixLength = m.IPV6NetworkMaskPrefixLength = iPrefixIPv6;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette