Update connection string information
This commit is contained in:
parent
607650613b
commit
b8343c70cd
|
@ -12,6 +12,7 @@ import (
|
||||||
|
|
||||||
type serverData struct {
|
type serverData struct {
|
||||||
IPAddr string
|
IPAddr string
|
||||||
|
Port int
|
||||||
Title string
|
Title string
|
||||||
Players string
|
Players string
|
||||||
}
|
}
|
||||||
|
@ -61,6 +62,7 @@ func main() {
|
||||||
|
|
||||||
data := serverData{
|
data := serverData{
|
||||||
*serverAddr,
|
*serverAddr,
|
||||||
|
34197,
|
||||||
"Server with Bob's Mod, est. Feb 2020",
|
"Server with Bob's Mod, est. Feb 2020",
|
||||||
playersOnline,
|
playersOnline,
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>blackolivepineapple.pizza Factorio Server</h1>
|
<h1>blackolivepineapple.pizza Factorio Server</h1>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b>IP Address:</b> {{.IPAddr}}</li>
|
<li><b>Connection String:</b> {{.IPAddr}}{{if .Port != 34197}}:{{.Port}}{{end}}</li>
|
||||||
<li><b>Server Name:</b> {{.Title}}</li>
|
<li><b>Server Name:</b> {{.Title}}</li>
|
||||||
<li><b>Current players:</b><br>{{.Players}}</li>
|
<li><b>Current players:</b><br>{{.Players}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue