Skip to content

Commit 0d07d08

Browse files
committed
Don't limit port number resolution on FreeBSD
- there's no IPPORT_USERRESERVED - /etc/services contains quite many entries for ports above 5000.
1 parent 1fff53a commit 0d07d08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tcp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ tcp_lookup(port)
118118

119119
if (nflag)
120120
se = NULL;
121+
#if !defined(__FreeBSD__)
121122
else if (port > IPPORT_USERRESERVED)
122123
se = NULL;
124+
#endif
123125
else {
124126
#if HAVE_GETSERVBYPORT
125127
display_message("resolving tcp port %u", port);

0 commit comments

Comments
 (0)