fix crash: Create a local copy of the <host:port> string.