code: private String extractIPV6Brackets(String host) {
  		String ret = host;
  		// IPv6 here, remove square brackets
  		if (host.indexOf(':') != -1) {
  			int startPoint = host.indexOf('[');
  			int endPoint = host.indexOf(']');
  			if (endPoint == -1) endPoint = host.length();
  			if (startPoint != -1) {
  				ret = host.substring(startPoint + 1, endPoint);
  			} else {
  				ret = host.substring(0, endPoint);
  			}
  		}
  		return ret;
  	}
docs: If the host is Ipv6, get the host without "[" and "]"
  If the host is Ipv4, get the host as normal.
  @param host
  @return host without square brackets