def _match_host_port(self, host, port, cur_host, cur_port):
<EOL>host_match = False<EOL>if not host:<EOL><INDENT>host_match = True<EOL><DEDENT>elif cur_host.startswith(host):  <EOL><INDENT>host_match = True<EOL><DEDENT>port_match = False<EOL>if not port:<EOL><INDENT>port_match = True<EOL><DEDENT>elif port == cur_port:<EOL><INDENT>port_match = True<EOL><DEDENT>return host_match and port_match<EOL>
Determine whether user-specified (host,port) matches current (cur_host, cur_port)
:param host,port: The user input of (host,port)
:param cur_host, cur_port: The current connection
:return: True or Not