summaryrefslogtreecommitdiff
path: root/node/InetAddress.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-01-08 14:27:55 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-01-08 14:27:55 -0800
commit64ba596e0b8d5ee4f3c7630a6315f884f09e1cab (patch)
treeba09819878bfaa2a6e86ebdcc2a34d2de9791e04 /node/InetAddress.cpp
parent60fb28a90a5e7b01e58b2a93351658195651e8eb (diff)
downloadinfinitytier-64ba596e0b8d5ee4f3c7630a6315f884f09e1cab.tar.gz
infinitytier-64ba596e0b8d5ee4f3c7630a6315f884f09e1cab.zip
C++ network config master ready to test.
Diffstat (limited to 'node/InetAddress.cpp')
-rw-r--r--node/InetAddress.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/InetAddress.cpp b/node/InetAddress.cpp
index 18c7f031..a27182a0 100644
--- a/node/InetAddress.cpp
+++ b/node/InetAddress.cpp
@@ -54,7 +54,7 @@ void InetAddress::set(const std::string &ip,unsigned int port)
} else {
_sa.sin.sin_family = AF_INET;
_sa.sin.sin_port = Utils::hton((uint16_t)port);
- if (inet_pton(AF_INET,ip.c_str(),(void *)&(_sa.sin.sin_addr.s_addr)) <= 0)
+ if (inet_pton(AF_INET,ip.c_str(),(void *)&(_sa.sin.sin_addr.s_addr)) <= 0)
_sa.saddr.sa_family = 0;
}
}