Skip to content

Commit 06d57d7

Browse files
committed
Added docker dev IP 172.18.0.1 to invalid IPs list
1 parent d02c6db commit 06d57d7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Require the vendor autoload file in your php script.
5050
require_once 'path/to/vendor/autoload.php';
5151
```
5252
## Usage
53-
Localhost IP `127.0.0.1`, `192.168.65.0` and `::1` will return `169.159.82.111` to assert a valid geo response.
53+
Localhost IP `127.0.0.1`, `192.168.65.0`, `172.18.0.1` and `::1` will return `169.159.82.111` to assert a valid geo response.
5454
```php
5555
use Victorybiz\GeoIPLocation\GeoIPLocation;
5656

src/GeoIPLocation.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ class GeoIPLocation
3131
];
3232

3333
protected $invalidIps = [
34-
'::1', '127.0.0.1', '192.168.65.0'
34+
'::1',
35+
'127.0.0.1',
36+
'192.168.65.0',
37+
'172.18.0.1',
3538
];
3639

3740
protected $localhostIp = '169.159.82.111';

0 commit comments

Comments
 (0)