Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xorz57 committed Dec 4, 2023
1 parent 115ee7a commit aaaf1da
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ int main(int argc, char *argv[]) {
try {
boost::asio::ip::tcp::resolver::iterator iterator = resolver.resolve(query);
auto socket = std::make_unique<boost::asio::ip::tcp::socket>(io_service);
if (!socket->is_open()) return 1;
socket->async_connect(iterator->endpoint(), [port, protocol, show](const boost::system::error_code &error) -> void {
if ((error && show == "closed") || (!error && show == "open")) {
std::cout << "Port " << port << "/" << protocol << " is " << (error ? "closed" : "open") << "." << std::endl;
Expand Down

0 comments on commit aaaf1da

Please sign in to comment.