diff options
Diffstat (limited to 'src/modules/objects')
| -rw-r--r-- | src/modules/objects/class_socket.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/objects/class_socket.cpp b/src/modules/objects/class_socket.cpp index 829b50ae0..0d2034be5 100644 --- a/src/modules/objects/class_socket.cpp +++ b/src/modules/objects/class_socket.cpp @@ -669,18 +669,15 @@ KVSO_CLASS_FUNCTION(socket,listen) } #endif - bool bGotIp = false; - if(!m_szLocalIp.isEmpty()) { // Check the address type - if(KviNetUtils::isValidStringIp(m_szLocalIp))bGotIp = true; - else { + if(!KviNetUtils::isValidStringIp(m_szLocalIp)) + { #ifdef COMPILE_IPV6_SUPPORT if(KviNetUtils::isValidStringIPv6(m_szLocalIp)) { - bGotIp = true; m_bIPv6 = true; } else { #else |
