6.5p1 upstream
permitreomoteopen="port" patch for 6.5p1
Merge branch '6.5p1-permitremoteopen'