use proxy protocol if specified by config