Try to look up protocol (by name) only iff it has non-numbers:
authorJarkko Hietaniemi <jhi@iki.fi>
Sun, 9 Sep 2001 13:03:33 +0000 (13:03 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sun, 9 Sep 2001 13:03:33 +0000 (13:03 +0000)
commit7822251ecf4a18e47928777b0f052ad10c2a4a33
treea914caacaf14d74ebf989d8b9e18c1996bc794bd
parent727f22e3bfa8ab582ce8ac7dc421247d52c9d694
Try to look up protocol (by name) only iff it has non-numbers:
nice if the server is in a chrooted environment (no /etc/protocols,
server code using hardcorded protocol numbers like 6 for tcp),
suggested by John Holdsworth <coldwave@bigfoot.com>.
In other words, if we are given a number, why look it up again
(by number)?

p4raw-id: //depot/perl@11957
ext/IO/lib/IO/Socket/INET.pm