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();
|
||||
|
||||
if ( ( eStringMode == SM_IP_NO_LAST_BYTE ) ||
|
||||
( eStringMode == SM_IP_NO_LAST_BYTE_PORT ) )
|
||||
// special case: for local host address, we do not replace the last byte
|
||||
if ( ( ( eStringMode == SM_IP_NO_LAST_BYTE ) ||
|
||||
( eStringMode == SM_IP_NO_LAST_BYTE_PORT ) ) &&
|
||||
( InetAddr != QHostAddress ( QHostAddress::LocalHost ) ) )
|
||||
{
|
||||
// replace last byte by an "x"
|
||||
strReturn = strReturn.section ( ".", 0, 2 ) + ".x";
|
||||
|
|
Loading…
Add table
Reference in a new issue