summaryrefslogtreecommitdiff
path: root/networkAddress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'networkAddress.cpp')
-rw-r--r--networkAddress.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/networkAddress.cpp b/networkAddress.cpp
index 3db7238..d87f5ba 100644
--- a/networkAddress.cpp
+++ b/networkAddress.cpp
@@ -36,6 +36,8 @@
NetworkAddress::NetworkAddress()
{
+ network_address_type_=ipv4;
+ ipv4_address_.s_addr=0;
}
NetworkAddress::NetworkAddress(const NetworkAddress & ref) : mutex_(),ipv4_address_(ref.ipv4_address_),ipv6_address_(ref.ipv6_address_),ethernet_address_(ref.ethernet_address_),network_address_type_(ref.network_address_type_)