diff options
author | FearlessTobi <thm.frey@gmail.com> | 2020-03-17 12:29:25 +0100 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2020-03-17 12:29:25 +0100 |
commit | 230ac6a4e8e96558d41ff18352fdc8cb1b3a593f (patch) | |
tree | 8480b3c31dd6c69058844a3013187b7e0b1b1a8e /src/input_common/udp | |
parent | Merge pull request #3521 from ReinUsesLisp/nsight-debug (diff) | |
download | yuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.tar yuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.tar.gz yuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.tar.bz2 yuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.tar.lz yuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.tar.xz yuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.tar.zst yuzu-230ac6a4e8e96558d41ff18352fdc8cb1b3a593f.zip |
Diffstat (limited to 'src/input_common/udp')
-rw-r--r-- | src/input_common/udp/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp index e82ae7ef1..da5227058 100644 --- a/src/input_common/udp/client.cpp +++ b/src/input_common/udp/client.cpp @@ -35,7 +35,7 @@ public: pad_index(pad_index) { boost::system::error_code ec{}; auto ipv4 = boost::asio::ip::make_address_v4(host, ec); - if (ec.failed()) { + if (ec.value() != boost::system::errc::success) { LOG_ERROR(Input, "Invalid IPv4 address \"{}\" provided to socket", host); ipv4 = boost::asio::ip::address_v4{}; } |