Stefan Schuermans commited on 2011-12-14 23:02:39 Showing 1 changed files, with 1 additions and 0 deletions.
@@ -35,6 +35,7 @@ Udp4Sock::Udp4Sock()
}
// enable address re-use
+ opt = 1;
if (setsockopt(m_fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) != 0) {
close(m_fd);
m_fd = -1;