Fix port number extraction

fixes https://github.com/jkramer/shell-fm/issues/79
basically, two things to say:
1) looks like it was comparing ':' position from proxy's url to '/' position from request's url, that totally has no sense to me
2) in case when no proxy used, valid url should not use colon without escaping in path segment anyway