fix logic bug in PROXY v1 parsing