shakyShane/browser-sync — pull request #48 by brutaldev (2014-01-21 08:46:27+00:00)
Title: Fix min/max port option bug

The entire options object is being passed into *portScanner.getPortRange* which fails all the checks and always returns 3000/4000. This effectively ignores any custom port range options being sent in (via grunt tasks or otherwise).

This fix simply extracts min and max port values from the options object (if provided) and passes them in correctly as two separate arguments to *portScanner.getPortRange*.