• Mikalai Radchuk's avatar
    Fixes address parsing in port-forward · 4ee20101
    Mikalai Radchuk authored
    The rules for address parsing are:
    
    * Explicitly specified addresses must bind successfully
    * `localhost` is pinned to `127.0.0.1` and `::1` and at least one of those must bind successfully
    
    This change also makes output of the command consistent
    between runs with the same arguments.
    Previously the command was using the range via map of addresses
    which sometimes was producing different output because the order
    of values is not guaranteed in Go.
    4ee20101
portforward.go 10.4 KB