mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
refactor: Add support for IPv6 addresses in sslip function
This commit is contained in:
1 parent
306c4dcbc5
commit
9a1c9124ae
1 file changed
+6
@@ -505,6 +505,12 @@ function sslip(Server $server)
|
||||
|
||||
return "http://$baseIp.sslip.io";
|
||||
}
|
||||
// ipv6
|
||||
if (str($server->ip)->contains(':')) {
|
||||
$ipv6 = str($server->ip)->replace(':', '-');
|
||||
|
||||
return "http://{$ipv6}.sslip.io";
|
||||
}
|
||||
|
||||
return "http://{$server->ip}.sslip.io";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user