We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1ee5d commit 9af4a63Copy full SHA for 9af4a63
src/Drivers/IpStackDriver.php
@@ -75,6 +75,8 @@ public function getRaw($ip)
75
*/
76
protected function getUrl($ip)
77
{
78
- return 'https://api.ipstack.com/'.$ip.'?access_key='.Arr::get($this->config, 'key');
+ $protocol = 'http'.(Arr::get($this->config, 'secure') ? 's' : '');
79
+
80
+ return $protocol.'://api.ipstack.com/'.$ip.'?access_key='.Arr::get($this->config, 'key');
81
}
82
src/config/config.php
@@ -92,5 +92,6 @@
92
|
93
94
'key' => env('GEOIP_TELIZE_KEY'),
95
+ 'secure' => env('GEOIP_IPSTACK_SECURE', true),
96
],
97
];
0 commit comments