Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Fixes TCPAcceptor able to use an empty string (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse authored and PeterJohnson committed Dec 26, 2016
1 parent ed9e837 commit 6ad9f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpiutil/src/tcpsockets/TCPAcceptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int TCPAcceptor::start() {
#else
int res = inet_pton(PF_INET, m_address.c_str(), &(address.sin_addr));
#endif
if (res != 1) {
if (res != 1 && !m_address.empty()) {
WPI_ERROR(m_logger, "could not resolve " << m_address << " address");
return -1;
}
Expand Down

0 comments on commit 6ad9f45

Please sign in to comment.