Fix port selection for TCP edges.