Closed MortenDHansen closed 1 year ago
By oversight it seems we created a breaking change.
It only returned to the original functionality
the package has been using Request::ip() since five years ago.
Originally posted by @ceejayoz https://github.com/owen-it/laravel-auditing/pull/743#issuecomment-1477655641
So, for avoid port, what about just explode
return explode(':', (string) Request::ip())[0];
Oh, jeez. My memory is terrible ...
I just looked at https://github.com/owen-it/laravel-auditing/pull/743 again. Yeah, that was not supposed to be merged 😄
Right! - i'll stop trying to remember more than 4 days back!
Originally posted by @APavlov2 in https://github.com/owen-it/laravel-auditing/issues/743#issuecomment-1477636727
By oversight it seems we created a breaking change. We should probably add a guard in IP resolver that checks for a valid value before attempting to write.
(and apparently we are missing one or more tests in this regard 😞 )