Skip to content

Commit 0c08da4

Browse files
committed
default true
1 parent 9af4a63 commit 0c08da4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ $config = [
7878
'driver' => 'ipstack',
7979
'ipstack' => [
8080
'key' => 'YOUR IPSTACK KEY',
81+
'secure' => true, // (optional) use https
8182
],
8283
];
8384
```

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"extra": {
3232
"branch-alias": {
33-
"dev-master": "3.0.x-dev"
33+
"dev-master": "4.0.x-dev"
3434
},
3535
"laravel": {
3636
"providers": [

src/Drivers/IpStackDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function getRaw($ip)
7575
*/
7676
protected function getUrl($ip)
7777
{
78-
$protocol = 'http'.(Arr::get($this->config, 'secure') ? 's' : '');
78+
$protocol = 'http'.(Arr::get($this->config, 'secure', true) ? 's' : '');
7979

8080
return $protocol.'://api.ipstack.com/'.$ip.'?access_key='.Arr::get($this->config, 'key');
8181
}

0 commit comments

Comments
 (0)