special procedure for local host addresses
This commit is contained in:
parent
753f54229b
commit
02762d6e00
1 changed files with 838 additions and 836 deletions
|
@ -432,8 +432,10 @@ public:
|
||||||
{
|
{
|
||||||
QString strReturn = InetAddr.toString();
|
QString strReturn = InetAddr.toString();
|
||||||
|
|
||||||
if ( ( eStringMode == SM_IP_NO_LAST_BYTE ) ||
|
// special case: for local host address, we do not replace the last byte
|
||||||
( eStringMode == SM_IP_NO_LAST_BYTE_PORT ) )
|
if ( ( ( eStringMode == SM_IP_NO_LAST_BYTE ) ||
|
||||||
|
( eStringMode == SM_IP_NO_LAST_BYTE_PORT ) ) &&
|
||||||
|
( InetAddr != QHostAddress ( QHostAddress::LocalHost ) ) )
|
||||||
{
|
{
|
||||||
// replace last byte by an "x"
|
// replace last byte by an "x"
|
||||||
strReturn = strReturn.section ( ".", 0, 2 ) + ".x";
|
strReturn = strReturn.section ( ".", 0, 2 ) + ".x";
|
||||||
|
|
Loading…
Reference in a new issue