获取客户端ip,其他的ip不允许访问function getClientIp (req) {var ipAddress;var forwardIpStr = reqheaders['x-forwarded-for'];i