16
16.7 Legacy Series / Re: Captive portal not using mac address correctly
« on: December 23, 2016, 03:38:37 pm »
I'm replying to myself, the problem is solved for me by changing this line:
mac = line.split('at')[-1].split('on')[0].strip()
by this one:
mac = line.split('at')[1].split('on')[0].strip()
in arp.py ( https://github.com/opnsense/core/blob/master/src/opnsense/scripts/OPNsense/CaptivePortal/lib/arp.py#L64 )
Have a nice Christmas day !
mac = line.split('at')[-1].split('on')[0].strip()
by this one:
mac = line.split('at')[1].split('on')[0].strip()
in arp.py ( https://github.com/opnsense/core/blob/master/src/opnsense/scripts/OPNsense/CaptivePortal/lib/arp.py#L64 )
Have a nice Christmas day !