From 269406e1bd916821a0cef22364f1967f2b4c19c2 Mon Sep 17 00:00:00 2001 From: Aleksandar Ovcharov Date: Sat, 7 Sep 2024 19:59:44 +0100 Subject: [PATCH] Update lgsl_class.php Setting to for getIp(true) as for steam connect for some reason steam://connect/domain.com:port does not work, but when is the actual `ip` there is no issue. --- src/lgsl_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lgsl_class.php b/src/lgsl_class.php index 4da417e..e8cdc78 100644 --- a/src/lgsl_class.php +++ b/src/lgsl_class.php @@ -914,7 +914,7 @@ public function getConnectionLink() { } // INSERT DATA INTO STATIC LINK - CONVERT SPECIAL CHARACTERS - RETURN - return htmlentities(str_replace(["{IP}", "{C_PORT}", "{Q_PORT}", "{S_PORT}", "{GAME}"], [$this->getIp(), $this->getConnectionPort(), $this->getQueryPort(), $s_port, $this->getGame()], $link), ENT_QUOTES); + return htmlentities(str_replace(["{IP}", "{C_PORT}", "{Q_PORT}", "{S_PORT}", "{GAME}"], [$this->getIp(true), $this->getConnectionPort(), $this->getQueryPort(), $s_port, $this->getGame()], $link), ENT_QUOTES); } public function addUrlPath($path = '') { global $lgsl_url_path; @@ -1214,4 +1214,4 @@ function toString() { $output .= " "; } - \ No newline at end of file +