EllisLab/CodeIgniter — pull request #2200 by dansoap (2013-01-28 11:28:51+00:00)
Title: Return default ip address for command line invokation

I ran into the warning `Undefined index: REMOTE_ADDR in Input.php` when I invoked a controller's method from the command line, e.g. `php index.php mycontroller/myfunction`

My proposed solution simply returns the default localhost ip address `127.0.0.1` when the php process is cli.