Project

General

Profile

« Previous | Next » 

Revision 5082282c

Added by Ermal LUÇI about 15 years ago

Use the configured src ip attribute choosen for accounting too.

View differences:

usr/local/captiveportal/radius_accounting.inc
67 67
        break;
68 68

  
69 69
        default:
70
        $calledstationid = get_interface_ip("wan");
70
	if (is_ipaddr($config['captiveportal']['radiussrcip_attribute']))
71
            $calledstationid = $config['captiveportal']['radiussrcip_attribute'];
72
        else
73
                $calledstationid = get_interface_ip($config['captiveportal']['radiussrcip_attribute']);
74
            $callingstationid = $clientmac;
71 75
        $callingstationid = $clientmac;
72 76
    }
73 77

  

Also available in: Unified diff