Skip to content

Commit 1bf9c51

Browse files
committed
Fixed geoip link to match ipv4 and ipv6
1 parent f45712c commit 1bf9c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Direct.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ public function create_box_content_risk_management()
206206
<p style='margin:0px;font-size: small;font-weight: 600'><small>Geolocation</small></p>
207207
<img src=\"".$Geolocation['country_flag']."\" width=\"30\" style=\"width:40px !important;\">
208208
<p style='margin:0px;font-size: x-small'>
209-
<small>".$Geolocation['country_code2']."
210-
<a target='_blank' href='https://www.ipaddress.com/ipv4/".$Geolocation['ip']."'>".$Geolocation['ip']."</a>
209+
<small>".$Geolocation['country_code2'];
210+
print "<a target='_blank' href='https://www.ipaddress.com/".((stripos($Geolocation['ip'],":") > -1) ? "ipv6" : "ipv4")."/".$Geolocation['ip']."'>".$Geolocation['ip']."</a>
211211
</small>
212212
</p>
213213
</div>";

0 commit comments

Comments
 (0)