diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-02-09 09:10:44 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-02-09 09:10:44 +0100 |
commit | bb773720e9cfd78bdba7190867fd221b767b90da (patch) | |
tree | aa23207d32f43f079724960f87aa4e71f2b6f82b /tracker-udp/ftnoir_tracker_udp.cpp | |
parent | b37c84ae33f9a762b52237942cd3c131e7851856 (diff) |
tracker/udp: use SO_REUSEADDR
Issue: #1424
Diffstat (limited to 'tracker-udp/ftnoir_tracker_udp.cpp')
-rw-r--r-- | tracker-udp/ftnoir_tracker_udp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-udp/ftnoir_tracker_udp.cpp b/tracker-udp/ftnoir_tracker_udp.cpp index 6badaa0f..f1f9f033 100644 --- a/tracker-udp/ftnoir_tracker_udp.cpp +++ b/tracker-udp/ftnoir_tracker_udp.cpp @@ -70,7 +70,7 @@ void udp::run() module_status udp::start_tracker(QFrame*) { - if (!sock.bind(QHostAddress::Any, quint16(s.port), QUdpSocket::DontShareAddress)) + if (!sock.bind(QHostAddress::Any, quint16(s.port), QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint)) return error(tr("Can't bind socket -- %1").arg(sock.errorString())); sock.moveToThread(this); |