Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net.c: pass sizeof sockaddr_in struct to bind()
macOS (possibly others?) does not like `sizeof sockaddr_storage` being passed to bind() and returns an `Invalid argument` error when attempting to bind ports on startup. This changes the call to instead use `sizeof(struct sockaddr_in)` (which assumes IPv4 but so does the rest of the function).
- Loading branch information