Better logic for testing if an argument is a port
authorRyan Dahl <ry@tinyclouds.org>
Sun, 9 May 2010 19:10:38 +0000 (12:10 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Sun, 9 May 2010 19:10:42 +0000 (12:10 -0700)
commit1d28cfcfb9ad48e03a0b6c48eda97b5c91a5e3ae
treea8d1a4ccbe7e612f9f1f8b2094d7c233ca36b0af
parentd38d96eb610b50bdbfe869a6e7688e346984c0fa
Better logic for testing if an argument is a port

If you did server.listen('123') it would open a socket in the current
directory called 123. Now it will interpret it as a port.
lib/net.js