tundrax/mechanize — comment on commit c75ef5862d15988031f5df329b20e2b636ca7300
File:  line 0
By drbrain:

I think Socket.getservbyname should be used instead, then checking #to_i should be used.

It is OK to use strings for ports.