diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-01-11 01:23:24 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-01-11 01:23:24 +0900 |
| commit | b340c25164f75c168c241ed136dc0fbe7e72dfdb (patch) | |
| tree | 9fd772a00557da7a4f5a05b2cef099e4f5b87c9a /src/SocketCore.cc | |
| parent | b6fd4366fece7a83e19973a40ed19e36b1dca92a (diff) | |
Code cleanup
Diffstat (limited to 'src/SocketCore.cc')
| -rw-r--r-- | src/SocketCore.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc index 59aa2f58..5a8109eb 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -1143,8 +1143,7 @@ void getInterfaceAddress } else { continue; } - if(util::streq(iface.begin(), iface.end(), - ifa->ifa_name, ifa->ifa_name+strlen(ifa->ifa_name))) { + if(strcmp(iface.c_str(), ifa->ifa_name) == 0) { socklen_t bindAddrLen = iffamily == AF_INET ? sizeof(sockaddr_in) : sizeof(sockaddr_in6); sockaddr_union bindAddr; |
