1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-26 21:17:40 +00:00
freebsd-ports/games/bzflag/files/patch-ServerLink.cxx
Nick Sayer 880fb00be3 Pointy hat time. The previous patch didn't accomplish the goal. This
will, though it does not use the IP_PORTRANGE option.
2001-04-15 20:34:44 +00:00

12 lines
482 B
C++

--- src/bzflag/ServerLink.cxx.orig Sun Apr 15 13:32:03 2001
+++ src/bzflag/ServerLink.cxx Sun Apr 15 13:32:20 2001
@@ -761,7 +761,7 @@
if ((urecvfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
return; // we cannot comply
}
- for (int portno=17200; portno < 65000; portno++) {
+ for (int portno=49152; portno < 65535; portno++) {
bzero((unsigned char *)&serv_addr, sizeof(serv_addr));
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);