Skip to content

Commit

Permalink
Update lgsl_class.php
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wohahobg authored Sep 7, 2024
1 parent 456ba38 commit 269406e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lgsl_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1214,4 +1214,4 @@ function toString() {
$output .= "
</select>";
}


0 comments on commit 269406e

Please sign in to comment.