彬***竒
///
/// 格式化ip地址并返回ip字符串
///
/// Request.UserHostAddress 用来获取ip地址的
///
public string GetIpAddress(string strIpAddress)
{
string tempIp = string.Empty; //存储变换后的IP
if (strIpAddress.Length != 0)
{
int indexIp = strIpAddress.LastIndexOf('.');
tempIp = strIpAddress.Substring(0, indexIp + 1) + "**"; /
3点赞