Skip to content

Commit

Permalink
Add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieAkeroyd committed Feb 20, 2025
1 parent d8ecebf commit 12da7f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,7 @@ Server::Pvt::Pvt(const Config &conf)
listeners.push_back(manager.onSearch(any4, cb));
}

if(evsocket::ipstack!=evsocket::Winsock
&& addr.addr.family()==AF_INET && !addr.addr.isAny() && !addr.addr.isMCast()) {
if(addr.addr.family()==AF_INET && !addr.addr.isAny() && !addr.addr.isMCast()) {
/* An oddness of BSD sockets (not winsock) is that binding to
* INADDR_ANY will receive unicast and broadcast, but binding to
* a specific interface address receives only unicast. The trick
Expand Down

0 comments on commit 12da7f4

Please sign in to comment.