minor fix, if protocol is not specified then default to TCP but ensure proto variable is set to tcp for return data.