diff options
Diffstat (limited to 'src/network/core/udp.cpp')
-rw-r--r-- | src/network/core/udp.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp index 96ece0ace..4a5570002 100644 --- a/src/network/core/udp.cpp +++ b/src/network/core/udp.cpp @@ -41,11 +41,7 @@ bool NetworkUDPSocketHandler::Listen() this->Close(); for (NetworkAddress *addr = this->bind.Begin(); addr != this->bind.End(); addr++) { - addr->Listen(AF_UNSPEC, SOCK_DGRAM, &this->sockets); - } - - for (SocketList::iterator s = this->sockets.Begin(); s != this->sockets.End(); s++) { - DEBUG(net, 1, "[udp] listening on port %s", s->first.GetAddressAsString()); + addr->Listen(SOCK_DGRAM, &this->sockets); } return this->sockets.Length() != 0; |