Skip to content

Commit 0215fd9

Browse files
committed
Update CheckIfIpIsVpn.php
1 parent 9b038b7 commit 0215fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Jobs/CheckIfIpIsVpn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function handle(): void
4646

4747
$isVpn = Http::retry(10)
4848
->throw()
49-
->get('https://vpnapi.io/api/' . request()->ip() . '?key=' . config('services.vpn_api.token'))
49+
->get('https://vpnapi.io/api/' . $this->ip . '?key=' . config('services.vpn_api.token'))
5050
->json('security.vpn');
5151

5252
if (blank($isVpn)) {

0 commit comments

Comments
 (0)